Interface IBinaryNCStorage
The auxiliary object that contains the output binary files data and additional implements two important things:
writing into an arbitrary file location; mapping between written data and CLDATA commands, when processing which these data were written.
Inherited Members
Namespace: SprutCAMTech.SCPostprocessor
Assembly: SprutCAMTech.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 |
---|---|---|
byte[] | b | The array of bytes to write. |
CutBytes(INCLabel, int)
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. |
int | byteCount | The count of bytes to cut. |
Returns
Type | Description |
---|---|
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. |
byte[] | b | The array of bytes to write. |
ReadBytes(INCLabel, int)
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. |
int | byteCount | The count of bytes to read. |
Returns
Type | Description |
---|---|
byte[] | Returns an array of read bytes. |