class

MDNS::DomainNameComponent

Inherits BinData / Reference / Object

A single component of the domain name. i.e. .com

Constants

AFTER_DESERIALIZE = [] of Nil

A single component of the domain name. i.e. .com

BEFORE_SERIALIZE = [] of Nil

A single component of the domain name. i.e. .com

ENDIAN = ["big"]

A single component of the domain name. i.e. .com

A single component of the domain name. i.e. .com

PARTS = [{type: "bitfield", name: 0, cls: MDNS::DomainNameComponent, onlyif: nil, verify: nil, endian: IO::ByteFormat::BigEndian}, {type: "basic", name: pointer_low, cls: UInt8, onlyif: -> do compressed? end, verify: nil, value: nil}, {type: "string", name: name, cls: String, onlyif: nil, verify: nil, length: -> do compressed? ? 0 : size end, value: nil, encoding: nil}] of Nil

A single component of the domain name. i.e. .com

REMAINING = [] of Nil

A single component of the domain name. i.e. .com

Class methods

bit_fields

A single component of the domain name. i.e. .com

Source

Instance methods

__format__

A group or bit_field captures the endianness at its declaration point, so declaring endian after one would silently leave it system-endian. Fail loudly.

Source
compressed?
Source
get_name(io : IO::Memory) : String
Source
indicator
indicator=(indicator : UInt8)
name
name=(name : String)
pointer_low
pointer_low=(pointer_low : UInt8)
read_next?
Source
size
size=(size : UInt8)

Nested types