Class DfbFormat
- Namespace
- DotFly.Core.Checkpoints
- Assembly
- DotFly.Core.dll
Layout constants of the dotFly brain checkpoint (.dfb) file.
The file is a little-endian container of fixed-width columns, each 64-byte aligned so that it can be memory-mapped and used in place:
[0..64) header: magic "DFB1", version, section count, header size, reserved
[64..) section table: × count
... sections, each aligned to 64 bytes
Section tags are four ASCII characters. Neuron columns have one element per neuron; edge columns have one element per directed edge in CSR order (rows = presynaptic neuron index, columns sorted ascending within a row).
public static class DfbFormat
- Inheritance
-
DfbFormat
- Inherited Members
Fields
Alignment
Section alignment in bytes.
public const int Alignment = 64
Field Value
HeaderSize
Header size in bytes.
public const int HeaderSize = 64
Field Value
Magic
File magic, "DFB1".
public const uint Magic = 826426948
Field Value
TagBodyId
Neuron column, ulong: body/root ID.
public static readonly uint TagBodyId
Field Value
TagClass
Neuron column, uint: string index of the class.
public static readonly uint TagClass
Field Value
TagColumns
Edge column indices, int[E]: postsynaptic neuron index.
public static readonly uint TagColumns
Field Value
TagFlywireType
Neuron column, uint: string index of the FlyWire type (MaleCNS cross-reference).
public static readonly uint TagFlywireType
Field Value
TagHemibrainType
Neuron column, uint: string index of the hemibrain type (MaleCNS cross-reference).
public static readonly uint TagHemibrainType
Field Value
TagInstance
Neuron column, uint: string index of the instance name.
public static readonly uint TagInstance
Field Value
TagNeurotransmitter
Neuron column, byte: Neurotransmitter.
public static readonly uint TagNeurotransmitter
Field Value
TagProvenance
Provenance JSON (UTF-8), see Provenance.
public static readonly uint TagProvenance
Field Value
TagRowPtr
Edge row pointers, long[N+1].
public static readonly uint TagRowPtr
Field Value
TagSetIndices
Concatenated, per-set-sorted neuron indices of all named sets, int[].
public static readonly uint TagSetIndices
Field Value
TagSets
Named sets directory: uint32 count, then per set uint32 nameStringIndex, uint32 offset, uint32 length into TagSetIndices.
public static readonly uint TagSets
Field Value
TagSide
Neuron column, byte: Side.
public static readonly uint TagSide
Field Value
TagSoma
Neuron column, int × 3: soma voxel coordinates, MinValue when unknown.
public static readonly uint TagSoma
Field Value
TagStrings
String table: uint32 count, uint32 offsets[count+1], UTF-8 bytes. Index 0 is always the empty string (used as "null").
public static readonly uint TagStrings
Field Value
TagSuperclass
Neuron column, uint: string index of the superclass.
public static readonly uint TagSuperclass
Field Value
TagType
Neuron column, uint: string index of the cell type.
public static readonly uint TagType
Field Value
TagWeights
Edge weights, short[E]: signed contact count.
public static readonly uint TagWeights
Field Value
Version
Current format version.
public const uint Version = 1
Field Value
Methods
Align(long)
Rounds a byte offset up to the next multiple of Alignment.
public static long Align(long offset)
Parameters
offsetlong
Returns
Tag(string)
Builds a section tag from four ASCII characters.
public static uint Tag(string fourCc)
Parameters
fourCcstring
Returns
TagToString(uint)
Formats a tag as its four characters, for diagnostics.
public static string TagToString(uint tag)
Parameters
taguint