MyCaffe  1.12.2.41
Deep learning software for Windows C# programmers.
MyCaffe.basecode.BinaryData Class Reference

The BinaryData class is used to pack and unpack DataCriteria binary data, optionally stored within each SimpleDatum. More...

Public Member Functions

 BinaryData ()
 The constructor. More...
 

Static Public Member Functions

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...
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ BinaryData()

MyCaffe.basecode.BinaryData.BinaryData ( )

The constructor.

Definition at line 19 of file BinaryData.cs.

Member Function Documentation

◆ 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
rgSpecifies the list of double values to pack.
fmtReturns 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
rgSpecifies the list of float values to pack.
fmtReturns 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
rgSpecifies the byte array containing the list.
fmtExpectedSpecifies 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
rgSpecifies the byte array containing the list.
fmtExpectedSpecifies 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
rgSpecifies 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: