메소드 | 설명 | |
---|---|---|
AllocateScratch ( int bytes, byte &scratch ) : byte[] |
Allocates a byte array of a given size.
|
|
DecodeUInt16BE ( byte buffer, int offset ) : ushort |
Decodes a ushort from a byte-array, in big-endian encoding.
|
|
DecodeUInt32BE ( byte buffer, int offset ) : uint |
Decodes a uint from a byte-array, in big-endian encoding.
|
|
EncodeUInt16BE ( ushort value ) : byte[] |
Encodes a ushort as a byte array in big-endian encoding.
|
|
EncodeUInt16BE ( byte buffer, int offset, ushort value ) : void |
Encodes a ushort as a byte array in big-endian encoding.
|
|
EncodeUInt32BE ( uint value ) : byte[] |
Encodes a uint as a byte array in big-endian encoding.
|
|
EncodeUInt32BE ( byte buffer, int offset, uint value ) : void |
Encodes a uint as a byte array in big-endian encoding.
|
public static AllocateScratch ( int bytes, byte &scratch ) : byte[] | ||
bytes | int | /// The minimum required length of the byte array. /// |
scratch | byte | /// A current byte array which can be re-used, if has enough size. /// |
리턴 | byte[] |
public static DecodeUInt16BE ( byte buffer, int offset ) : ushort | ||
buffer | byte |
/// A |
offset | int |
/// The index in |
리턴 | ushort |
public static DecodeUInt32BE ( byte buffer, int offset ) : uint | ||
buffer | byte |
/// A |
offset | int |
/// The index in |
리턴 | uint |
public static EncodeUInt16BE ( ushort value ) : byte[] | ||
value | ushort |
/// The |
리턴 | byte[] |
public static EncodeUInt16BE ( byte buffer, int offset, ushort value ) : void | ||
buffer | byte |
/// The |
offset | int |
/// The index of the first byte in |
value | ushort |
/// The |
리턴 | void |
public static EncodeUInt32BE ( uint value ) : byte[] | ||
value | uint |
/// The |
리턴 | byte[] |
public static EncodeUInt32BE ( byte buffer, int offset, uint value ) : void | ||
buffer | byte |
/// The |
offset | int |
/// The index of the first byte in |
value | uint |
/// The |
리턴 | void |