Method | Description | |
---|---|---|
DecodeFloat ( byte bytes ) : float |
Decode the payload that was encoded using encodeFloat(float) NOTE: the length of the array must be at least offset + 4 long.
|
|
DecodeFloat ( byte bytes, int offset ) : float |
Decode the payload that was encoded using encodeFloat(float) NOTE: the length of the array must be at least offset + 4 long.
|
|
DecodeInt ( byte bytes, int offset ) : int | ||
EncodeFloat ( float payload ) : byte[] | ||
EncodeFloat ( float payload, byte data, int offset ) : byte[] | ||
EncodeInt ( int payload ) : byte[] | ||
EncodeInt ( int payload, byte data, int offset ) : byte[] |
public static DecodeFloat ( byte bytes ) : float | ||
bytes | byte | The bytes to decode |
return | float |
public static DecodeFloat ( byte bytes, int offset ) : float | ||
bytes | byte | The bytes to decode |
offset | int | The offset into the array. |
return | float |
public static DecodeInt ( byte bytes, int offset ) : int | ||
bytes | byte | |
offset | int | |
return | int |
public static EncodeFloat ( float payload ) : byte[] | ||
payload | float | |
return | byte[] |
public static EncodeFloat ( float payload, byte data, int offset ) : byte[] | ||
payload | float | |
data | byte | |
offset | int | |
return | byte[] |
public static EncodeInt ( int payload ) : byte[] | ||
payload | int | |
return | byte[] |
public static EncodeInt ( int payload, byte data, int offset ) : byte[] | ||
payload | int | |
data | byte | |
offset | int | |
return | byte[] |