public sealed class Buffer
|
BlockCopy | Copies a specified number of bytes from a source array starting at a particular offset to a destination array starting at a particular offset. |
ByteLength | Returns the number of bytes in the specified array. |
Equals (inherited from System.Object) |
See base class member description: System.Object.Equals Derived from System.Object, the primary base class for all objects. |
GetByte | Retrieves the byte at a specified location in a specified array. |
GetHashCode (inherited from System.Object) |
See base class member description: System.Object.GetHashCode Derived from System.Object, the primary base class for all objects. |
GetType (inherited from System.Object) |
See base class member description: System.Object.GetType Derived from System.Object, the primary base class for all objects. |
SetByte | Assigns a specified value to a byte at a particular location in a specified array. |
ToString (inherited from System.Object) |
See base class member description: System.Object.ToString Derived from System.Object, the primary base class for all objects. |
Finalize (inherited from System.Object) |
See base class member description: System.Object.Finalize Derived from System.Object, the primary base class for all objects. |
MemberwiseClone (inherited from System.Object) |
See base class member description: System.Object.MemberwiseClone Derived from System.Object, the primary base class for all objects. |
Hierarchy:
public static void BlockCopy( |
src
srcOffset
dst
dstOffset
count
array
Exception Type | Condition |
---|---|
ArgumentNullException | array is null. |
ArgumentException | array is not a primitive. |
int [] arr = new int [5] {0, 1, 2, 3, 4}; Debug.Assert (Buffer.ByteLength(arr) == 20); for (int i = 0; i < Buffer.ByteLength(arr); i++) { Console.Write(arr[i]); } //This will print: 00000001000200030004
~Buffer(); |
array
index
Exception Type | Condition |
---|---|
ArgumentException | array is not a primitive. |
ArgumentNullException | array is null. |
ArgumentOutOfRangeException | index is negative or greater than the length of array. |
public virtual int GetHashCode(); |
public Type GetType(); |
protected object MemberwiseClone(); |
array
index
value
Exception Type | Condition |
---|---|
ArgumentException | array is not a primitive. |
ArgumentNullException | array is null. |
ArgumentOutOfRangeException | index is negative or greater than the length of array. |
public virtual string ToString(); |