Click or drag to resize
XDL

XBERCodecEncode Method (Byte, Int32, Int32, Boolean, Byte)

데이터를 바이트 버퍼에 바이트 순서를 지정하여 추가한다.

Namespace:  Pixoneer.NXDL.NXVideo
Assembly:  NXVideo (in NXVideo.dll) Version: 1.2.817.72
Syntax
C#
public static int Encode(
	ref byte[] buf,
	int offset,
	int itemSize,
	bool convertEndian,
	byte[] item
)

Parameters

buf
Type: SystemByte
[IN/OUT] 인코딩 데이터 버퍼.
offset
Type: SystemInt32
버퍼에서 새 인코딩 데이터가 기록되는 위치.
itemSize
Type: SystemInt32
인코딩 데이터 길이.
convertEndian
Type: SystemBoolean
인코딩 데이터의 바이트 순서 변경 여부. 표준 인코딩은 빅-엔디안(Big-Endian)이며 순서를 변경하지 않는 경우 데이터가 그대로 복사된다.
item
Type: SystemByte
인코딩하려는 데이터.

Return Value

Type: Int32
인코딩한 길이. 버퍼가 부족하거나 다른 인코딩 오류가 발생한 경우 0을 반환한다.
See Also