The MutableByte type exposes the following members.

Constructors

  NameDescription
Public methodMutableByte()()()()
Standard constructor. Initializes the internal buffer to null.
Public methodMutableByte(array<Byte>[]()[][])
Constructor. Initialize internal buffer with supplied value.
Public methodMutableByte(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.
Public methodMutableByte(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

  NameDescription
Public methodAppend(Byte)
Append a single byte value to the internal buffer
Public methodAppend(array<Byte>[]()[][])
Append data to the internal buffer
Public methodClear
Reset object data to null
Public methodClone
Clone object
Public methodCompareTo(array<Byte>[]()[][])
Compare class to a byte[] array.
Public methodCompareTo(MutableByte)
Compare class to another MutableByte class.
Public methodEquals(Object)
Compares MutableByte object against another MutableByte object or a byte array
(Overrides Object..::..Equals(Object).)
Public methodStatic memberEquals(array<Byte>[]()[][], array<Byte>[]()[][])
Compare two byte arrays
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 methodGet
Get sub-array
Public methodGetHashCode
Returns object hash code. Just calls the base class implementation.
(Overrides Object..::..GetHashCode()()()().)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodInsert(Int32, Byte)
Insert single byte at specified location
Public methodInsert(Int32, array<Byte>[]()[][])
Insert byte array at position
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodPrepend(Byte)
Prepend (add at the beginning) a single byte value
Public methodPrepend(array<Byte>[]()[][])
Prepend (insert at beginning) a byte array
Public methodRemove
Remove array byte members starting with position start for the length length bytes.
Public methodRemoveBeginning
Remove bytes from the beginning of the array
Public methodRemoveEnd
Remove number of byte values from the end of the internal buffer
Public methodReset
Reset object data to null
Public methodSet(Byte)
Set internal buffer to size 1 and copy supplied byte value into it
Public methodSet(array<Byte>[]()[][])
Set internal buffer to supplied value. Overwrites existing data.
Public methodSet(String)
Set class value with bytes from the string. UTF8 encoding is assumed.
Public methodSet(array<Byte>[]()[][], Int32)
Copy source buffer array up to length into the class.
Public methodSet(Int32, Byte)
Set value at specified position to the supplied value
Public methodSet(array<Byte>[]()[][], Int32, Int32)
Set class value to the contents of the supplied array starting from offset with specified length
Public methodToString()()()()
Convert array to a string
(Overrides Object..::..ToString()()()().)
Public methodToString(Int32, Int32)
Hexadecimal data dump of the specific range of buffer values

Operators

  NameDescription
Public operatorStatic memberAddition(MutableByte, MutableByte)
Add MutableByte buffer values.
Public operatorStatic memberAddition(MutableByte, Byte)
Add a MutableByte array and a single byte value
Public operatorStatic memberAddition(MutableByte, array<Byte>[]()[][])
Add MutableByte and byte array values into a new MutableByte class.
Public operatorStatic memberEquality
Compare two MutableByte class contents
Public operatorStatic memberGreaterThan
Greater then operator overload.
Public operatorStatic memberImplicitWideningImplicitImplicitImplicit(MutableByte to array<Byte>[]()[][])
Allow implicit casting of this object as a byte array for any callers.
Public operatorStatic memberInequality
Negative compare.
Public operatorStatic memberLessThan
Lesser then operator overload.

Properties

  NameDescription
Public propertyItem
Index operator. Index access to the underlying byte array
Public propertyLength
Byte buffer current length

See Also