[][src]Module git_packetline::decode

Utilities to help decoding packet lines

Enums

Error

The error used in the [decode][crate::decode] module

PacketLineOrWantedSize

The result of hex_prefix() indicating either a special packet line or the amount of wanted bytes

Stream

A utility return type to support incremental parsing of packet lines.

Functions

all_at_once

Decode an entire packet line from data or fail.

hex_prefix

Decode the four_bytes packet line prefix provided in hexadecimal form and check it for validity.

streaming

Decode data as packet line while reporting whether the data is complete or not using a Stream.

to_data_line

Obtain a PacketLine from data after assuring data is small enough to fit.