Versions in this module Expand all Collapse all v0 v0.5.0 May 25, 2023 Changes in this version + const AccessOutOfBounds + const DataOutOfBounds + const InvalidHexDigit + const MissingStartCodeErr + const MultipleEofErr + const NoEofRecordErr + const NoMoreRecordsErr + const RecordErr + const RecordOutOfBounds + const WrongRecordFormatErr + func CustomError(original FileError, msg string, args ...any) error + type File struct + func ReadAll(in io.ByteScanner) (*File, error) + func (hf *File) BinarySize() int + func (hf *File) Iterator() <-chan *Record + func (hf *File) ReadAt(pos uint32, size int) ([]byte, error) + func (hf *File) Record(idx int) (*Record, error) + func (hf *File) Size() int + func (hf *File) WriteAt(pos uint32, data []byte) error + type FileError string + func (r FileError) Error() string + type Record struct + func ParseRecord(input io.ByteScanner) (*Record, error) + func (r *Record) Address() uint16 + func (r *Record) AddressBytes() []byte + func (r *Record) AsBytes() []byte + func (r *Record) AsString() string + func (r *Record) ByteCount() int + func (r *Record) Checksum() []byte + func (r *Record) ReadData() []byte + func (r *Record) Type() RecordType + func (r *Record) WriteData(start int, data []byte) error + type RecordError string + func (r RecordError) Error() string + type RecordType uint + const DataRecord + const EOFRecord + const ExtendedLinearAddrRecord + const ExtendedSegmentAddrRecord + const InvalidRecord + const StartLinearAddrRecord + const StartSegmentAddrRecord + type Unsigned interface