C# Класс ImageProcessor.Imaging.Helpers.BigEndianBitConverter

Implementation of EndianBitConverter which converts to/from big-endian byte arrays. Adapted from Miscellaneous Utility Library This product includes software developed by Jon Skeet and Marc Gravell. Contact , or see .
Наследование: EndianBitConverter
Показать файл Открыть проект

Открытые методы

Метод Описание
IsLittleEndian ( ) : bool

Indicates the byte order ("endianness") 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 ("endianness") 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 IsLittleEndian ( ) : bool
Результат bool