GrpcCompressionFlag
struct GrpcCompressionFlagTyped wrapper around the LPM flag byte. is_compressed() returns True when bit 0 is set; raw exposes the byte for callers that need to forward greased / extension bits without interpretation.
Implements Copyable, Movable
- Fields
raw: UInt8
is_compressed
def is_compressed(self) -> Bool has_reserved_bits
def has_reserved_bits(self) -> Bool Return True if any reserved bit (bits 1..7) is set. Callers may treat this as a protocol violation; the codec itself accepts the bits to remain forward-compatible with future spec extensions.