The MutableByte type exposes the following members.
Constructors
| Name | Description | |
|---|---|---|
| MutableByte()()()() |
Standard constructor. Initializes the internal buffer to null.
| |
| MutableByte(array<Byte>[]()[][]) |
Constructor. Initialize internal buffer with supplied value.
| |
| MutableByte(array<Byte>[]()[][], array<Byte>[]()[][]) |
Create new MutableByte class initialized by adding two byte buffers together. If
one of the supplied byte arrays is value null then ArgumentNullException is thrown.
| |
| MutableByte(array<Byte>[]()[][], Int32) |
Create new MutableByte class initialized with data from the supplied array up to length of buflen. Internaly,
a call is made to MutableByte.Set(buf[],int) to initialize the new class data buffer.
|
Methods
| Name | Description | |
|---|---|---|
| Append(Byte) |
Append a single byte value to the internal buffer
| |
| Append(array<Byte>[]()[][]) |
Append data to the internal buffer
| |
| Clear |
Reset object data to null
| |
| Clone |
Clone object
| |
| CompareTo(array<Byte>[]()[][]) |
Compare class to a byte[] array.
| |
| CompareTo(MutableByte) |
Compare class to another MutableByte class.
| |
| Equals(Object) |
Compares MutableByte object against another MutableByte object or a byte array
(Overrides Object..::..Equals(Object).) | |
| Equals(array<Byte>[]()[][], array<Byte>[]()[][]) |
Compare two byte arrays
| |
| Finalize |
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.) | |
| Get |
Get sub-array
| |
| GetHashCode |
Returns object hash code. Just calls the base class implementation.
(Overrides Object..::..GetHashCode()()()().) | |
| GetType |
Gets the Type of the current instance.
(Inherited from Object.) | |
| Insert(Int32, Byte) |
Insert single byte at specified location
| |
| Insert(Int32, array<Byte>[]()[][]) |
Insert byte array at position
| |
| MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
| Prepend(Byte) |
Prepend (add at the beginning) a single byte value
| |
| Prepend(array<Byte>[]()[][]) |
Prepend (insert at beginning) a byte array
| |
| Remove |
Remove array byte members starting with position start for the length length bytes.
| |
| RemoveBeginning |
Remove bytes from the beginning of the array
| |
| RemoveEnd |
Remove number of byte values from the end of the internal buffer
| |
| Reset |
Reset object data to null
| |
| Set(Byte) |
Set internal buffer to size 1 and copy supplied byte value into it
| |
| Set(array<Byte>[]()[][]) |
Set internal buffer to supplied value. Overwrites existing data.
| |
| Set(String) |
Set class value with bytes from the string. UTF8 encoding is assumed.
| |
| Set(array<Byte>[]()[][], Int32) |
Copy source buffer array up to length into the class.
| |
| Set(Int32, Byte) |
Set value at specified position to the supplied value
| |
| Set(array<Byte>[]()[][], Int32, Int32) |
Set class value to the contents of the supplied array starting from offset with specified length
| |
| ToString()()()() |
Convert array to a string
(Overrides Object..::..ToString()()()().) | |
| ToString(Int32, Int32) |
Hexadecimal data dump of the specific range of buffer values
|
Operators
| Name | Description | |
|---|---|---|
| Addition(MutableByte, MutableByte) |
Add MutableByte buffer values.
| |
| Addition(MutableByte, Byte) |
Add a MutableByte array and a single byte value
| |
| Addition(MutableByte, array<Byte>[]()[][]) |
Add MutableByte and byte array values into a new MutableByte class.
| |
| Equality |
Compare two MutableByte class contents
| |
| GreaterThan |
Greater then operator overload.
| |
| ImplicitWideningImplicitImplicitImplicit(MutableByte to array<Byte>[]()[][]) |
Allow implicit casting of this object as a byte array for any callers.
| |
| Inequality |
Negative compare.
| |
| LessThan |
Lesser then operator overload.
|
Properties
| Name | Description | |
|---|---|---|
| Item |
Index operator. Index access to the underlying byte array
| |
| Length |
Byte buffer current length
|