|
XBERCodecEncode(Byte, Int32, Int32, Boolean, Byte) Method
|
데이터를 바이트 버퍼에 바이트 순서를 지정하여 추가한다.
Namespace: Pixoneer.NXDL.NXVideoAssembly: NXVideo (in NXVideo.dll) Version: 2.0.3.38
Syntaxpublic static int Encode(
ref byte[] buf,
int offset,
int itemSize,
bool convertEndian,
byte[] item
)
Parameters
- buf Byte
- [IN/OUT] 인코딩 데이터 버퍼.
- offset Int32
- 버퍼에서 새 인코딩 데이터가 기록되는 위치.
- itemSize Int32
- 인코딩 데이터 길이.
- convertEndian Boolean
- 인코딩 데이터의 바이트 순서 변경 여부. 표준 인코딩은 빅-엔디안(Big-Endian)이며 순서를 변경하지 않는 경우 데이터가 그대로 복사된다.
- item Byte
- 인코딩하려는 데이터.
Return Value
Int32 인코딩한 길이. 버퍼가 부족하거나 다른 인코딩 오류가 발생한 경우 0을 반환한다.
See Also