class

Crowbar::Rules::TLVRule

Inherits Crowbar::Rule < Reference < Object

Structure-preserving rule for Type-Length-Value (TLV) binary record streams. Parses 2-byte Tag and 2-byte Big-Endian Length framing: [Tag: UInt16][Length: UInt16][Value: Length bytes]

Instance methods

apply(context : Context, buffer : Buffer) : Bool

Applies a structure-preserving transformation to the buffer

Source
description
Source
match?(buffer : Buffer) : Bool

Checks whether the buffer matches the format handled by this rule

Source
name
Source

Nested types