Class: EsriShapefile::RecordHeader

Inherits:
Object
  • Object
show all
Includes:
ByteModel
Defined in:
lib/esri_shapefile/models/record_header.rb

Overview

The header for each record stores the record number and content length for the record. Record headers have a fixed length of 8 bytes. The list of fields shows the fields in the record header with their byte position, type, and byte order. The field position is with respect to the start of the record.

Instance Attribute Summary

Attributes included from ByteModel

#metadata

Instance Method Summary collapse

Methods included from ByteModel

extended, included

Instance Method Details

#content_length_bytesObject



23
24
25
# File 'lib/esri_shapefile/models/record_header.rb', line 23

def content_length_bytes
  content_length * 2
end