C# 클래스 MiscUtil.Conversion.LittleEndianBitConverter

상속: EndianBitConverter
파일 보기 프로젝트 열기: jadref/buffer_bci 1 사용 예제들

공개 메소드들

메소드 설명
IsLittleEndian ( ) : bool

Indicates the byte order ("endianess") in which data is converted using this class.

Different computer architectures store data using different byte orders. "Big-endian" means the most significant byte is on the left end of a word. "Little-endian" means the most significant byte is on the right end of a word.

보호된 메소드들

메소드 설명
CopyBytesImpl ( long value, int bytes, byte buffer, int index ) : void

Copies the specified number of bytes from value to buffer, starting at index.

FromBytes ( byte buffer, int startIndex, int bytesToConvert ) : long

Returns a value built from the specified number of bytes from the given buffer, starting at index.

메소드 상세

CopyBytesImpl() 보호된 메소드

Copies the specified number of bytes from value to buffer, starting at index.
protected CopyBytesImpl ( long value, int bytes, byte buffer, int index ) : void
value long The value to copy
bytes int The number of bytes to copy
buffer byte The buffer to copy the bytes into
index int The index to start at
리턴 void

FromBytes() 보호된 메소드

Returns a value built from the specified number of bytes from the given buffer, starting at index.
protected FromBytes ( byte buffer, int startIndex, int bytesToConvert ) : long
buffer byte The data in byte array format
startIndex int The first index to use
bytesToConvert int The number of bytes to use
리턴 long

IsLittleEndian() 공개 최종 메소드

Indicates the byte order ("endianess") in which data is converted using this class.
Different computer architectures store data using different byte orders. "Big-endian" means the most significant byte is on the left end of a word. "Little-endian" means the most significant byte is on the right end of a word.
public final IsLittleEndian ( ) : bool
리턴 bool