Sha256: 482c30e232da524c3dbaa6067090728983be4858717b7395b78c6be5941835cd

Contents?: true

Size: 318 Bytes

Versions: 1

Compression:

Stored size: 318 Bytes

Contents

module Fit
  class File
    class Header < BinData::Record
      endian :little

      uint8  :header_size
      uint8  :protocol_version
      uint16 :profile_version
      uint32 :data_size
      string :data_type, :read_length => 4

      def end_pos
        header_size + data_size - 2
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
garmin-fit-0.0.2 lib/fit/file/header.rb