Interface: HeaderRecord
The H (header) record. Carries the delimiters it declared as provenance.
Extends
RecordBase
Properties
delimiters
readonlydelimiters:Delimiters
The four delimiters this header put into force - the set its own fields, and every record after it, were read with.
A stream may carry several messages (H … L) and each header declares its own set, so on a
multi-header stream these can differ between headers; AstmMessage.delimiters is the
first header's. When a later header cannot declare a usable set, the set already in force is
kept and reported here (with an ASTM_RECORD_UNREADABLE_REDECLARATION warning) rather than a
guessed one.
fields
readonlyfields: readonlyAstmField[]
The record's fields. fields[0] is the type-letter field; data fields are 1-indexed after it.
Inherited from
RecordBase.fields
rawLine
readonlyrawLine:string
The header's exact wire text (terminator excluded), kept as provenance: the delimiters are read from this raw text, never from RecordBase.fields.
It is not what the serializer emits from. To change a header field, edit
RecordBase.fields - fields[0] is the type letter, fields[1] is the
delimiter declaration, and the header's ASTM data fields follow from fields[2].
Editing this string instead has no effect on emit.
recordIndex
readonlyrecordIndex:number
0-based ordinal of the record within the message.
Inherited from
RecordBase.recordIndex
type
readonlytype:"H"
The record's raw type letter.
Overrides
RecordBase.type