Interface IBinaryNCStorage
The auxiliary object that contains the output binary files data and additional implements two important things:
Inherited Members
Namespace: SprutTechnology.SCPostprocessor
Assembly: SCPostprocessor.dll
Syntax
public interface IBinaryNCStorage : INCStorage
Methods
AppendBytes(Byte[])
Adds the specified array of bytes to the end fo this storage.
Declaration
void AppendBytes(byte[] b)
Parameters
Type | Name | Description |
---|---|---|
System.Byte[] | b | The array of bytes to write. |
CutBytes(INCLabel, Int32)
Cuts from this storage the specified count of bytes starting from the position defined by the pos label. The data located after the specified number of bytes will be shifted closer to the pos position.
Declaration
byte[] CutBytes(INCLabel pos, int byteCount)
Parameters
Type | Name | Description |
---|---|---|
INCLabel | pos | The position from which the cutting should start. |
System.Int32 | byteCount | The count of bytes to cut. |
Returns
Type | Description |
---|---|
System.Byte[] | Returns an array of cutted bytes. |
PasteBytes(INCLabel, Byte[])
Adds the specified array of bytes to this storage starting from the position defined by the pos label. Bytes, located after the specified position, if such exist, will be shifted further (there will not be overwritten).
Declaration
void PasteBytes(INCLabel pos, byte[] b)
Parameters
Type | Name | Description |
---|---|---|
INCLabel | pos | The position to which the data should be written. |
System.Byte[] | b | The array of bytes to write. |
ReadBytes(INCLabel, Int32)
Reads from this storage the specified count of bytes starting from the position defined by the pos label.
Declaration
byte[] ReadBytes(INCLabel pos, int byteCount)
Parameters
Type | Name | Description |
---|---|---|
INCLabel | pos | The position from which the reading should start. |
System.Int32 | byteCount | The count of bytes to read. |
Returns
Type | Description |
---|---|
System.Byte[] | Returns an array of read bytes. |