msgpack :: MsgPackExt :: defaultinit
# Application specific MessagePack extension
class MsgPackExt
serialize
# Custom type code, in [0..127]
var typ: Int
# Data bytes
var data: Bytes
redef fun hash do return typ.hash + data.hash*8
redef fun ==(o) do return o isa MsgPackExt and o.typ == typ and o.data == data
redef fun to_s do return "<{class_name} typ: {typ.to_b}, data: {data.chexdigest}>"
end
lib/msgpack/ext.nit:20,1--33,3