The Payload type exposes the following members.

Constructors

  NameDescription
Public methodPayload()()()()
Creates an empty payload and does not allocate a byte array.
Public methodPayload(array<Byte>[]()[][])
Creates a new payload with the the given array as data. A reference to the passed-in array is held, i. e. no copy is made.
Public methodPayload(array<Byte>[]()[][], Int32, Int32)
Creates a new payload with the the given array as data. A reference to the passed-in array is held, i. e. no copy is made.

Methods

  NameDescription
Public methodByteAt
Returns the byte at the given index.
Public methodClone
Clones this payload by creating a copy of the underlying byte array.
Public methodCopyTo
Copies the payload data to a byte array.
Public methodEquals (Overrides Object..::..Equals(Object).)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetData
Returns a reference to the underlying byte array that holds this payloads data.
Public methodGetHashCode (Overrides Object..::..GetHashCode()()()().)
Public methodGetOffset
Returns the offset in the underlying byte array
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodLength
Returns the length of the payload data.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetData(array<Byte>[]()[][])
Sets this payloads data. A reference to the passed-in array is held, i. e. no copy is made.
Public methodSetData(array<Byte>[]()[][], Int32, Int32)
Sets this payloads data. A reference to the passed-in array is held, i. e. no copy is made.
Public methodToByteArray
Allocates a new byte array, copies the payload data into it and returns it.
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)

Fields

  NameDescription
Protected fielddata
the byte array containing the payload data
Protected fieldlength
the length of the payload data
Protected fieldoffset
the offset within the byte array

See Also