ImmutableByteBuffer Class |
Namespace: CoronaLabs.WinRT
The ImmutableByteBuffer type exposes the following members.
Name | Description | |
---|---|---|
![]() | Equals | (Inherited from Object.) |
![]() | First | Gets an iterator used to iterate through all of the bytes in the buffer in a foreach loop. |
![]() ![]() | From(Byte) | Creates a new immutable byte buffer containing a copy of the given byte array. |
![]() ![]() | From(IIterableByte) | Creates a new immutable byte buffer containing a copy of the given byte collection. |
![]() ![]() | From(IVectorByte) | Creates a new immutable byte buffer containing a copy of the given byte collection. |
![]() | GetByIndex | Fetches a byte from the buffer by its zero based index. |
![]() | GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) |
![]() | GetType | Gets the Type of the current instance. (Inherited from Object.) |
![]() | ToString | Returns a string that represents the current object. (Inherited from Object.) |
Name | Description | |
---|---|---|
![]() | Count | Gets the number of bytes stored in this buffer. |
![]() ![]() | Empty | Gets a pre-allocated ImmutableByteBuffer instance which contains zero bytes. You can use this object to optimize member variable initialization of this type. |
![]() | IsEmpty | Determins if this buffer contains zero bytes. |
![]() | IsNotEmpty | Determines if this buffer contains at least 1 byte. |
You can only create instances of this class via its static From() methods.
You can also access a pre-allocated "empty" version of this buffer via its static Empty property.