Byte array buffer
OperationsCopy constructor
New(buffer:Byte[])
Name | Type | Description |
---|---|---|
buffer | Byte[] | buffer to set |
Default constructor
New()
Appends a byte array
method : public : native : Append(array:Byte[]) ~ Nil
Name | Type | Description |
---|---|---|
array | Byte[] | array to be copied |
Appends a byte array
method : public : native : Append(length:Int, array:Byte[]) ~ Nil
Name | Type | Description |
---|---|---|
length | Int | number of characters to copy |
array | Byte[] | array to be copied |
Appends a byte
method : public : Append(c:Byte) ~ Nil
Name | Type | Description |
---|---|---|
c | Byte | byte to append |
Gets the current buffer's storage capacity. That is the number of bytes the buffer will hold before it is resized for growth.
method : public : Capacity() ~ Int
Type | Description |
---|---|
Int | buffer capacity |
Clones the object instance
method : public : Clone() ~ System.ByteBuffer
Type | Description |
---|---|
ByteBuffer | cloned the object instance |
Compares two objects
method : public : Compare(rhs:System.Compare) ~ Int
Name | Type | Description |
---|---|---|
rhs | Compare | compare object |
Type | Description |
---|---|
Int | 0 if equal, -1 if right-hand side i greater, 1 if left-hand side is greater |
Returns the byte at the given index
method : public : native : Get(index:Int) ~ Char
Name | Type | Description |
---|---|---|
index | Int | index offset |
Type | Description |
---|---|
Char | byte at index |
Returns a unique hash ID for a given byte sequence
method : public : native : HashID() ~ Int
Type | Description |
---|---|
Int | hash ID |
Gets the raw reference to the underlying byte array
method : public : Raw() ~ Byte[]
Type | Description |
---|---|
Byte[] | raw byte array reference |
Return the size of the string
method : public : Size() ~ Int
Type | Description |
---|---|
Int | size of the string |
Returns a trimmed byte array
method : public : native : ToByteArray() ~ Byte[]
Type | Description |
---|---|
Byte[] | byte array |
Returns a string representation of the byte buffer
method : public : ToString() ~ String
Type | Description |
---|---|
String | string representation of the byte buffer |