class CQL::Postgres::Wire::Reader

Overview

Big-endian cursor over one backend message payload.

Defined in:

postgres/wire/reader.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(bytes : Bytes) #

[View source]

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.


[View source]

Instance Method Detail

def bytes(count : Int32) : Bytes #

[View source]
def char : Char #

[View source]
def cstring : String #

Null-terminated string.


[View source]
def int16 : Int16 #

[View source]
def int32 : Int32 #

[View source]
def int8 : Int8 #

[View source]
def remaining : Int32 #

[View source]
def rest : Bytes #

[View source]
def uint16 : UInt16 #

[View source]
def uint32 : UInt32 #

[View source]
def uint8 : UInt8 #

[View source]