class
CQL::Postgres::Wire::Reader
- CQL::Postgres::Wire::Reader
- Reference
- Object
Overview
Big-endian cursor over one backend message payload.
Defined in:
postgres/wire/reader.crConstructors
Class Method Summary
-
.big_endian(bytes : Bytes) : UInt64
Up to 8 bytes as one big-endian unsigned number.
Instance Method Summary
- #bytes(count : Int32) : Bytes
- #char : Char
-
#cstring : String
Null-terminated string.
- #int16 : Int16
- #int32 : Int32
- #int8 : Int8
- #remaining : Int32
- #rest : Bytes
- #uint16 : UInt16
- #uint32 : UInt32
- #uint8 : UInt8
Constructor Detail
Class Method Detail
def self.big_endian(bytes : Bytes) : UInt64
#
Up to 8 bytes as one big-endian unsigned number. Shifting is several times cheaper than IO::ByteFormat, which copies through a StaticArray.