module

Durian

Constants

AvailableRecordFlag = ["A", "AAAA", "NS", "PTR", "CNAME", "SOA", "TXT", "MX", "DNAME", "SRV"]
VERSION = "0.1.4"

Class methods

decode_by_resource_pointer(protocol : Protocol, io : IO, buffer : IO::Memory, maximum_depth : Int32 = 65)
Source
decode_chunk(buffer : IO::Memory) : Tuple(ChunkFlag, Array(String), UInt8)
Source
depth_decode_by_resource_pointer!(protocol : Protocol, buffer : IO::Memory, offset : Int, question : Bool = false, maximum_depth : Int32 = 65) : String | Nil
Source
encode_chunk_ipv4_address(ip_address, io : IO)
Source
limit_length_buffer(io : IO, length : Int) : IO::Memory
Source
limit_length_buffer!(io : IO, length : Int) : IO::Memory
Source
parse_chunk_address(protocol : Protocol, io : IO, buffer : IO, maximum_depth : Int32 = 65)
Source
parse_strict_length_address(protocol : Protocol, io : IO, length : Int, buffer : IO::Memory, maximum_depth : Int32 = 65, maximum_length : Int32 = 512)
Source
update_chunk_resource_pointer_position(protocol : Protocol, buffer : IO::Memory, chunk_length : UInt8, question : Bool = false)
Source

Nested types