struct AMQ::Protocol::Table
- AMQ::Protocol::Table
- Struct
- Value
- Object
Defined in:
amq/protocol/table.crConstant Summary
-
BYTEFORMAT =
IO::ByteFormat::NetworkEndian
Constructors
- .from_bytes(bytes, format) : self
- .from_io(io, format, size : UInt32 | Nil = nil) : self
- .new(hash : NamedTuple, io : IO::Memory = IO::Memory.new)
- .new(hash : Hash(String, Field) | Nil, io : IO::Memory = IO::Memory.new)
- .new(io : IO::Memory = IO::Memory.new(0))
Instance Method Summary
-
#==(other : self)
Comparition on a semantic level, not on byte level
- #[](key : String)
- #[]=(key : String, value : Field)
- #[]?(key : String)
- #all?(& : String, Field -> _) : Bool
- #any?(& : String, Field -> _) : Bool
- #bytesize
- #clone : self
- #delete(key : String)
-
#delete(key)
DEPRECATED key must be string
- #each(& : String, Field -> Nil)
- #empty?
- #fetch(key : String, default : Field)
- #fetch(key : String, &)
- #has_key?(key : String) : Bool
-
#has_key?(key)
DEPRECATED key must be string
- #inspect(io)
- #merge!(other : Hash(String, Field) | NamedTuple | self) : self
- #reject!(& : String, Field -> _) : self
- #size
- #to_h
- #to_io(io, format) : Nil
- #to_json(json : JSON::Builder)