OffsetBufferT Class |
Generic buffer array which takes offsets into account. The buffer can be locked and pinned.
Namespace: StreamCoders
public class OffsetBuffer<T> : LockableOperationClient, IOffsetBuffer<T>, IOffsetBuffer where T : struct, new()
The OffsetBufferT type exposes the following members.
Name | Description | |
---|---|---|
OffsetBufferT | Initializes a new instance of the OffsetBufferT class | |
OffsetBufferT(Int32) |
Constructor. Creates a new Array with a given size.
| |
OffsetBufferT(T) |
Constructor.
| |
OffsetBufferT(T, Int32, Int32) |
Constructor.
|
Name | Description | |
---|---|---|
Array |
An array of type T containing elements.
| |
Count |
Number of elements T available, taking Offset into account.
| |
Id | (Inherited from LockableOperationClient.) | |
IsLocked |
Gets a value indicating whether this LockableOperationClient is locked.
(Inherited from LockableOperationClient.) | |
Item |
Indexer to access Array with respect to Offset.
| |
Offset |
Zero based offset into Buffer.
|
Name | Description | |
---|---|---|
AppendToFile | ||
CopyFrom |
Copies elements into local buffer.
| |
DeepCopy |
Creates a deep copy of the current object.
| |
ExtractArray |
Extracts the underlying buffer into a new array.
| |
ExtractArray(Int32, Int32) |
Extracts array from Buffer by creating a copy.
| |
GetArrayLength | ||
Lock |
Locks this object instance against the ILockableOperationProvider.
(Inherited from LockableOperationClient.) | |
Pin | Pins the managed handle of Array with respect to Offset. | |
Pop | ||
Push | ||
SaveToFile |
Saves contents of OffsetBuffer to a file.
| |
ToMemoryStream |
Creates a MemoryStream object from the contents of OffsetBuffer. If T is not of type byte,
an intermediate buffer is created.
| |
ToString |
Convert this instance into a string representation.
(Overrides ObjectToString.) | |
TryUnlock |
Unlocks this object instance against the ILockableOperationProvider passed by Lock.
(Inherited from LockableOperationClient.) | |
Unlock |
Unlocks this object instance against the ILockableOperationProvider passed by Lock.
This method throws an exception in case the client object is not locked.
(Inherited from LockableOperationClient.) | |
Unpin |
Unpins managed handle of Array.
|
Name | Description | |
---|---|---|
BufferPinned |
The buffer pinned.
|
Name | Description | |
---|---|---|
Copy | Overloaded.
Creates a copy of the object.
(Defined by ObjectExtensions.) | |
Copy(Object) | Overloaded.
Creates a deep copy of the object using the supplied object as a target for the copy operation.
(Defined by ObjectExtensions.) |