func (db *DBaseFile) readTerminator() (err error) {
	err = db.checkOffset(db.offsets.fieldEnd, `starting to read terminator character`)
	if err != nil {
		return err
	}

	terminator := make([]byte, 1)
	_, err = db.r.Read(terminator)
	if err != nil {
		return err
	}

	if terminator[0] != TerminatorCharacter {
		return fmt.Errorf(`invalid terminator: %#v`, terminator)
	}

	err = db.checkOffset(db.offsets.terminatorEnd, `after terminator character`)
	if err != nil {
		return err
	}

	return nil
}
// Read single terminator character (0x0d) after all field descriptors headers
Read single terminator character (0x0d) after all field descriptors headers
// Read single terminator character ( 0x0d ) after all field descriptors headers
func (db *DBaseFile) readTerminator() (err error) {
	err = db.checkOffset(db.offsets.fieldEnd, `starting to read terminator character`)
	if err != nil {
		return err
	}
	terminator := make([]byte, 1)
	_, err = db.r.Read(terminator)
	if err != nil {
		return err
	}
	if terminator[0] != TerminatorCharacter {
		return fmt.Errorf(`invalid terminator: %#v`, terminator)
	}
	err = db.checkOffset(db.offsets.terminatorEnd, `after terminator character`)
	if err != nil {
		return err
	}
	return nil
}
func ( db * DBaseFile ) readTerminator ( ) ( err error ) { err = db . checkOffset ( db . offsets . fieldEnd , `starting to read terminator character` ) if err != nil { return err } terminator := make ( [ ] byte , 1 ) _ , err = db . r . Read ( terminator ) if err != nil { return err } if terminator [ 0 ] != TerminatorCharacter { return fmt . Errorf ( `invalid terminator: %#v` , terminator ) } err = db . checkOffset ( db . offsets . terminatorEnd , `after terminator character` ) if err != nil { return err } return nil }
Read single terminator character (0x0d) after all field descriptors headers
Read single terminator character ( 0x0d ) after all field descriptors headers