Click or drag to resize
ImmutableByteBuffer Class
Stores a static collection of bytes which cannot be changed.
Inheritance Hierarchy
SystemObject
  CoronaLabs.WinRTImmutableByteBuffer

Namespace: CoronaLabs.WinRT
Assembly: CoronaLabs (in CoronaLabs.dll) Version: 255.255.255.255
Syntax
public sealed class ImmutableByteBuffer : __IImmutableByteBufferPublicNonVirtuals, 
	IIterable<byte>

The ImmutableByteBuffer type exposes the following members.

Methods
  NameDescription
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public methodFirst
Gets an iterator used to iterate through all of the bytes in the buffer in a foreach loop.
Public methodStatic memberFrom(Byte)
Creates a new immutable byte buffer containing a copy of the given byte array.
Public methodStatic memberFrom(IIterableByte)
Creates a new immutable byte buffer containing a copy of the given byte collection.
Public methodStatic memberFrom(IVectorByte)
Creates a new immutable byte buffer containing a copy of the given byte collection.
Public methodGetByIndex
Fetches a byte from the buffer by its zero based index.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
Properties
  NameDescription
Public propertyCount
Gets the number of bytes stored in this buffer.
Public propertyStatic memberEmpty

Gets a pre-allocated ImmutableByteBuffer instance which contains zero bytes.

You can use this object to optimize member variable initialization of this type.

Public propertyIsEmpty
Determins if this buffer contains zero bytes.
Public propertyIsNotEmpty
Determines if this buffer contains at least 1 byte.
Top
Remarks

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.

See Also