The BinaryData class is used to pack and unpack DataCriteria binary data, optionally stored within each SimpleDatum.
More...
|
static DATA_FORMAT | UnPackType (byte[] rg) |
| Unpack the type packed into the byte array (if any). More...
|
|
static byte[] | Pack (List< double > rg, out DATA_FORMAT fmt) |
| Pack a list of double into a byte array. More...
|
|
static List< double > | UnPackDoubleList (byte[] rg, DATA_FORMAT fmtExpected) |
| Unpack the byte array into a list of double values. More...
|
|
static byte[] | Pack (List< float > rg, out DATA_FORMAT fmt) |
| Pack a list of float into a byte array. More...
|
|
static List< float > | UnPackFloatList (byte[] rg, DATA_FORMAT fmtExpected) |
| Unpack the byte array into a list of float values. More...
|
|
The BinaryData class is used to pack and unpack DataCriteria binary data, optionally stored within each SimpleDatum.
Definition at line 14 of file BinaryData.cs.
◆ BinaryData()
MyCaffe.basecode.BinaryData.BinaryData |
( |
| ) |
|
◆ Pack() [1/2]
static byte[] MyCaffe.basecode.BinaryData.Pack |
( |
List< double > |
rg, |
|
|
out DATA_FORMAT |
fmt |
|
) |
| |
|
static |
Pack a list of double into a byte array.
- Parameters
-
rg | Specifies the list of double values to pack. |
fmt | Returns the format LIST_DOUBLE |
- Returns
- The byte array is returned.
Definition at line 49 of file BinaryData.cs.
◆ Pack() [2/2]
static byte[] MyCaffe.basecode.BinaryData.Pack |
( |
List< float > |
rg, |
|
|
out DATA_FORMAT |
fmt |
|
) |
| |
|
static |
Pack a list of float into a byte array.
- Parameters
-
rg | Specifies the list of float values to pack. |
fmt | Returns the format LIST_FLOAT |
- Returns
- The byte array is returned.
Definition at line 106 of file BinaryData.cs.
◆ UnPackDoubleList()
static List< double > MyCaffe.basecode.BinaryData.UnPackDoubleList |
( |
byte[] |
rg, |
|
|
DATA_FORMAT |
fmtExpected |
|
) |
| |
|
static |
Unpack the byte array into a list of double values.
- Parameters
-
rg | Specifies the byte array containing the list. |
fmtExpected | Specifies the expected format. |
- Returns
- The list of double values is returned.
Definition at line 75 of file BinaryData.cs.
◆ UnPackFloatList()
static List< float > MyCaffe.basecode.BinaryData.UnPackFloatList |
( |
byte[] |
rg, |
|
|
DATA_FORMAT |
fmtExpected |
|
) |
| |
|
static |
Unpack the byte array into a list of float values.
- Parameters
-
rg | Specifies the byte array containing the list. |
fmtExpected | Specifies the expected format. |
- Returns
- The list of float values is returned.
Definition at line 132 of file BinaryData.cs.
◆ UnPackType()
static DATA_FORMAT MyCaffe.basecode.BinaryData.UnPackType |
( |
byte[] |
rg | ) |
|
|
static |
Unpack the type packed into the byte array (if any).
- Parameters
-
rg | Specifies the byte array. |
- Returns
- The DATA_FORMAT of the byte array is returned.
Definition at line 28 of file BinaryData.cs.
The documentation for this class was generated from the following file:
- C:/Data/Data/SS_Projects/Intelligence/GitHub/MyCaffe/MyCaffe.basecode/BinaryData.cs