Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DataHeader ¶
type DataHeader struct { Magic [4]byte // always 'WDBC' // records per file RecordCount uint32 // fields per record. The field disze is always 4bytes long (uint32) FieldCount uint32 // RecordSize is the size of a record in bytes RecordSize uint32 // StringBlockSize size of the string block at the end of file in bytes StringBlockSize uint32 }
DataHeader is the header of a DBC file with the following fields: Magic: always 'WDBC' RecordCount: records per file FieldCount: fields per record.
type Reader ¶
type Reader[C any] struct { Header DataHeader Records []C // contains filtered or unexported fields }
func NewReader ¶
NewReader creates a new Reader instance for the given io.Reader to read DBC files.
r: the io.Reader to read DBC files from. (*Reader[C], error): a pointer to a Reader instance and a possible error that might occur.
Click to show internal directories.
Click to hide internal directories.