class

Ticket

Inherits BinData < Reference < Object

Constants

ENDIAN = ["big"]
KLASS_NAME = [Ticket]
PARTS = [{type: "basic", name: type, cls: UInt8, onlyif: nil, verify: nil, value: nil}, {type: "basic", name: plate_len, cls: UInt8, onlyif: nil, verify: nil, value: -> do plate.bytesize end}, {type: "string", name: plate, cls: String, onlyif: nil, verify: nil, length: -> do plate_len end, value: nil, encoding: nil}, {type: "basic", name: road, cls: UInt16, onlyif: nil, verify: nil, value: nil}, {type: "basic", name: mile1, cls: UInt16, onlyif: nil, verify: nil, value: nil}, {type: "basic", name: timestamp1, cls: UInt32, onlyif: nil, verify: nil, value: nil}, {type: "basic", name: mile2, cls: UInt16, onlyif: nil, verify: nil, value: nil}, {type: "basic", name: timestamp2, cls: UInt32, onlyif: nil, verify: nil, value: nil}, {type: "basic", name: speed, cls: UInt16, onlyif: nil, verify: nil, value: nil}] of Nil
REMAINING = [] of Nil

Class methods

bit_fields
Source

Instance methods

__format__
Source
mile1
mile1=(mile1 : UInt16)
mile2
mile2=(mile2 : UInt16)
plate
plate=(plate : String)
plate_len
plate_len=(plate_len : UInt8)
road
road=(road : UInt16)
speed
speed=(speed : UInt16)
timestamp1
timestamp1=(timestamp1 : UInt32)
timestamp2
timestamp2=(timestamp2 : UInt32)
type
type=(type : UInt8)

Macros

data(name, onlyif = nil, verify = nil, value = nil)
Source
error(name, onlyif = nil, verify = nil, value = nil)
Source
plate(name, onlyif = nil, verify = nil, value = nil)
Source
response(name, onlyif = nil, verify = nil, value = nil)
Source
ticket(name, onlyif = nil, verify = nil, value = nil)
Source