Class RawData
Convey a byte array in SystemGraph. Can be used as a circular buffer or standard buffer.
Inherited Members
Namespace: Mechatronics.SystemGraph
Syntax
public class RawData : GenericCircularBuffer<byte>
Constructors
RawData()
Construct a byte buffer with an element stride corresponding to sizeof(byte).
Declaration
public RawData()
RawData(Int32)
Construct a byte buffer with an element stride corresponding to the size specified. Must be a multiple of sizeof(byte).
Declaration
public RawData(int chunkSize)
Parameters
Type | Name | Description |
---|---|---|
Int32 | chunkSize | Number of elements that correspond to an entry (aka. chunk) in the buffer. |
Methods
InternalGetElementStride()
Retrieves the size of an element in bytes.
Declaration
protected override int InternalGetElementStride()
Returns
Type | Description |
---|---|
Int32 | Number of bytes corresponding to the size of the element. |
Overrides
Mechatronics.SystemGraph.GenericBuffer<System.Byte>.InternalGetElementStride()
SetChunkSize(Int32)
Set the number of element that compose a chunk into the array.
Declaration
protected void SetChunkSize(int chunkSize)
Parameters
Type | Name | Description |
---|---|---|
Int32 | chunkSize | Number of elements that correspond to an entry (aka. chunk) in the buffer. |