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
-
data(name, onlyif = nil, verify = nil, value = nil)
-
error(name, onlyif = nil, verify = nil, value = nil)
-
plate(name, onlyif = nil, verify = nil, value = nil)
-
response(name, onlyif = nil, verify = nil, value = nil)
-
ticket(name, onlyif = nil, verify = nil, value = nil)
Class Method Detail
Instance Method Detail
def
__format__ : IO::ByteFormat
#
def
mile1=(mile1 : UInt16)
#
def
mile2=(mile2 : UInt16)
#
def
plate=(plate : String)
#
def
plate_len=(plate_len : UInt8)
#
def
road=(road : UInt16)
#
def
speed=(speed : UInt16)
#
def
timestamp1 : UInt32
#
def
timestamp1=(timestamp1 : UInt32)
#
def
timestamp2 : UInt32
#
def
timestamp2=(timestamp2 : UInt32)
#
def
type=(type : UInt8)
#
Macro Detail
macro
data(name, onlyif =
nil, verify =
nil, value =
nil)
#
macro
error(name, onlyif =
nil, verify =
nil, value =
nil)
#
macro
plate(name, onlyif =
nil, verify =
nil, value =
nil)
#
macro
response(name, onlyif =
nil, verify =
nil, value =
nil)
#
macro
ticket(name, onlyif =
nil, verify =
nil, value =
nil)
#