메소드 | 설명 | |
---|---|---|
ExifBitConverter ( IComputerArchitectureInfo computerArchitectureInfo ) : System |
Initializes a new instance of the ExifBitConverter class.
|
|
GetBytes ( Rational |
Converts the given signed rational number to an array of bytes.
|
|
GetBytes ( Rational |
Converts the given unsigned rational number to an array of bytes.
|
|
GetBytes ( string value ) : byte[] |
Converts the given ascii string to an array of bytes without adding a null terminator.
|
|
GetBytes ( string value, bool addnull ) : byte[] |
Converts the given ascii string to an array of bytes optionally adding a null terminator.
|
|
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 given number of bytes from the least-specific end of the specified value into the specified byte array, beginning at the specified index. This must be implemented in concrete derived classes, but the implementation may assume that the value will fit into the buffer.
|
|
FromBytes ( byte value, int startIndex, int bytesToConvert ) : long |
Convert the given number of bytes from the given array, from the given start position, into a long, using the bytes as the least significant part of the long. By the time this is called, the arguments have been checked for validity.
|
protected CopyBytesImpl ( long value, int bytes, byte buffer, int index ) : void | ||
value | long | The value to copy bytes for |
bytes | int | The number of significant bytes to copy |
buffer | byte | The byte array to copy the bytes into |
index | int | The first index into the array to copy the bytes into |
리턴 | void |
public ExifBitConverter ( IComputerArchitectureInfo computerArchitectureInfo ) : System | ||
computerArchitectureInfo | IComputerArchitectureInfo | /// The computer architecture info. /// |
리턴 | System |
protected FromBytes ( byte value, int startIndex, int bytesToConvert ) : long | ||
value | byte | The bytes to convert |
startIndex | int | The index of the first byte to convert |
bytesToConvert | int | The number of bytes to use in the conversion |
리턴 | long |
public GetBytes ( Rational |
||
value | Rational |
/// The |
리턴 | byte[] |
public GetBytes ( Rational |
||
value | Rational |
/// The |
리턴 | byte[] |
public GetBytes ( string value ) : byte[] | ||
value | string | The string to convert. |
리턴 | byte[] |
public GetBytes ( string value, bool addnull ) : byte[] | ||
value | string | The string to convert |
addnull | bool | Whether to add a null terminator to the end of the string. |
리턴 | byte[] |