Class ByteConverter
Inheritance
ByteConverter
Assembly: cs.temp.dll.dll
Syntax
public static class ByteConverter
Methods
Get<T>(IByteBuffer, Int32)
Declaration
public static T Get<T>(IByteBuffer buffer, int n)
Parameters
Type |
Name |
Description |
IByteBuffer |
buffer |
|
Int32 |
n |
|
Returns
Type Parameters
ToArray<T>(IByteBuffer)
Declaration
public static T[] ToArray<T>(IByteBuffer buffer)
Parameters
Type |
Name |
Description |
IByteBuffer |
buffer |
|
Returns
Type Parameters
ToArray<T>(IByteBuffer, Int32)
Declaration
public static T[] ToArray<T>(IByteBuffer buffer, int bitsAllocated)
Parameters
Type |
Name |
Description |
IByteBuffer |
buffer |
|
Int32 |
bitsAllocated |
|
Returns
Type Parameters
ToByteBuffer(String, Encoding)
Declaration
public static IByteBuffer ToByteBuffer(string value, Encoding encoding = null)
Parameters
Type |
Name |
Description |
String |
value |
|
Encoding |
encoding |
|
Returns
Type |
Description |
IByteBuffer |
|
ToByteBuffer(String, Encoding, Byte)
Declaration
public static IByteBuffer ToByteBuffer(string value, Encoding encoding, byte padding)
Parameters
Type |
Name |
Description |
String |
value |
|
Encoding |
encoding |
|
Byte |
padding |
|
Returns
Type |
Description |
IByteBuffer |
|
ToByteBuffer<T>(T[])
Declaration
public static IByteBuffer ToByteBuffer<T>(T[] values)
where T : struct
Parameters
Type |
Name |
Description |
T[] |
values |
|
Returns
Type |
Description |
IByteBuffer |
|
Type Parameters
UnpackHigh16(IByteBuffer)
Declaration
public static IByteBuffer UnpackHigh16(IByteBuffer data)
Parameters
Type |
Name |
Description |
IByteBuffer |
data |
|
Returns
Type |
Description |
IByteBuffer |
|
UnpackLow16(IByteBuffer)
Declaration
public static IByteBuffer UnpackLow16(IByteBuffer data)
Parameters
Type |
Name |
Description |
IByteBuffer |
data |
|
Returns
Type |
Description |
IByteBuffer |
|