Hierarchy

  • BaseField

Constructors

Properties

buffer: Buffer

Corce the field into a buffer. This differes from reading the data property in that it will include the field type header.

constructor: typeof BaseField
data: Buffer

The raw field data

bytesToRead: number | ((reportedLength: number) => number)

The number of bytes to read for this field. If the field is not a fixed size, set this to a function which will recieve the UInt32 value just after reading the field type, returning the next number of bytes to read.

type: FieldType

Declares the type of field this class represents

Generated using TypeDoc