Tesla Graphics Engine Documentation (January 2012)
DataBuffer<(Of <(<'T>)>)> Class
TeslaTesla.CoreDataBuffer<(Of <(<'T>)>)>
Generic buffer class. Has additional relative and absolute Get/Set operations.
Declaration Syntax
C#
public sealed class DataBuffer<T> : DataBuffer
where T : struct, new()
Generic Template Parameters
T
Generic type that is bounded to a value type
Members
All Members Constructors Methods Properties



Icon Member Description
DataBuffer<(Of <(<'T>)>)>(Int32)
Instantiates a new DataBuffer with initial capacity.

DataBuffer<(Of <(<'T>)>)>(array<T>[]()[][])
Instantiates a new DataBuffer initialized with the input data, which will be used as the backing store.

Buffer
Get the underlying managed buffer that contains this buffer'fullyQualifiedName data.

ByteDataCopy
Get the buffer as an array of bytes. This will always return a new byte array snapshot.
(Overrides DataBuffer.ByteDataCopy.)
ElementSizeInBytes
Get the size of a single element in the buffer in bytes.
(Overrides DataBuffer.ElementSizeInBytes.)
ElementType
Gets the element type contained in the buffer.
(Overrides DataBuffer.ElementType.)
Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Get()()()()
Relative get operation. Returns the next element and increments position by one.

Get(Int32)
Absolute get operation. Returns the element at the specified index, provided it is within range.

Get(array<T>[]()[][])
Relative bulk get operation. Copies the data from the buffer at the current position to the end of the array store.

Get(array<T>[]()[][], Int32)
Relative bulk get operation. Copies data from the buffer at the current position to position + count to the array.

Get(array<T>[]()[][], Int32, Int32)
Relative bulk get operation. Copies data from the buffer at the current position to position + count to the array starting at the startIndex.

Get(array<Byte>[]()[][], Int32, Int32)
Relative get operation that copies byte store from the buffer.
(Overrides DataBuffer.Get(array<Byte>[]()[][], Int32, Int32).)
Get(array<Byte>[]()[][])
Relative get operation that copies byte store from the buffer.
(Inherited from DataBuffer.)
Get(array<Byte>[]()[][], Int32)
Relative get operation that copies byte store from the buffer.
(Inherited from DataBuffer.)
GetHashCode()()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()()
Gets the Type of the current instance.
(Inherited from Object.)
HasNext
Get if this buffer'fullyQualifiedName position can be incremented to the next index.
(Inherited from DataBuffer.)
Length
Gets or protected sets the number of elements this buffer can contain.
(Inherited from DataBuffer.)
Position
Get or set the current buffer position. This index must be between 0 and capacity - 1.
(Inherited from DataBuffer.)
Read(ISavableReader)
Deserializes the object and populates it from the input.
(Overrides DataBuffer.Read(ISavableReader).)
Set(T)
Relative set operation. Increments the position to the next value space and stores the value.

Set(T, Int32)
Absolute set operation. Stores the value at the specified index, if its within range.

Set(array<T>[]()[][])
Relative bulk set operation. Stores all the array's values, incrementing the position of the buffer as it goes. The buffer must have sufficient space and bounds checks are enforced.

Set(array<T>[]()[][], Int32)
Relative bulk set operation. Stores the specified number of the values in the input array into the buffer, incrementing the position of the buffer as it goes. The buffer must have sufficient space and bounds checks are enforced.

Set(array<T>[]()[][], Int32, Int32)
Relative bulk set operation. Stores the specified number of the values in the input array into the buffer, incrementing the position of the buffer as it goes. The buffer must have sufficient space and bounds checks are enforced.

Set(array<Byte>[]()[][], Int32, Int32)
Relative set operation that copies by te data into the buffer.
(Overrides DataBuffer.Set(array<Byte>[]()[][], Int32, Int32).)
Set(array<Byte>[]()[][])
Relative set operation that copies byte data into the buffer.
(Inherited from DataBuffer.)
Set(array<Byte>[]()[][], Int32)
Relative set operation that copies byte data into the buffer.
(Inherited from DataBuffer.)
SizeInBytes
Get the entire size of the buffer contents in bytes.
(Overrides DataBuffer.SizeInBytes.)
ToString()()()()
Returns a String that represents the current Object.
(Inherited from Object.)
Write(ISavableWriter)
Serializes the object and writes it to the output.
(Overrides DataBuffer.Write(ISavableWriter).)
Inheritance Hierarchy
Object
DataBuffer
  DataBuffer<(Of <(<'T>)>)>

Assembly: Tesla (Module: Tesla) Version: 0.5.0.0 (0.5.0.0)