class Ticket

Defined in:

6_speed_daemon.cr

Constant Summary

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 Method Summary

Instance Method Summary

Macro Summary

Class Method Detail

def self.bit_fields #

[View source]

Instance Method Detail

def __format__ : IO::ByteFormat #

[View source]
def mile1 : UInt16 #

def mile1=(mile1 : UInt16) #

def mile2 : UInt16 #

def mile2=(mile2 : UInt16) #

def plate : String #

def plate=(plate : String) #

def plate_len : UInt8 #

def plate_len=(plate_len : UInt8) #

def road : UInt16 #

def road=(road : UInt16) #

def speed : UInt16 #

def speed=(speed : UInt16) #

def timestamp1 : UInt32 #

def timestamp1=(timestamp1 : UInt32) #

def timestamp2 : UInt32 #

def timestamp2=(timestamp2 : UInt32) #

def type : UInt8 #

def type=(type : UInt8) #

Macro Detail

macro data(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro error(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro plate(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro response(name, onlyif = nil, verify = nil, value = nil) #

[View source]
macro ticket(name, onlyif = nil, verify = nil, value = nil) #

[View source]