package tlv
import "github.com/influxdata/influxdb/cmd/influx_tools/internal/tlv"
Package tlv contains code to read and write type-length-value messages.
Index ¶
- Constants
- func ReadLV(r io.Reader) ([]byte, error)
- func ReadTLV(r io.Reader) (byte, []byte, error)
- func ReadType(r io.Reader) (byte, error)
- func WriteLV(w io.Writer, buf []byte) error
- func WriteTLV(w io.Writer, typ byte, buf []byte) error
- func WriteType(w io.Writer, typ byte) error
Constants ¶
const MaxMessageSize = 1024 * 1024 * 1024 // 1GB
MaxMessageSize defines how large a message can be before we reject it.
Functions ¶
func ReadLV ¶
ReadLV reads the length-value from a TLV record.
func ReadTLV ¶
ReadTLV reads a type-length-value record from r.
func ReadType ¶
ReadType reads the type from a TLV record.
func WriteLV ¶
WriteLV writes the length-value in a TLV record to w.
func WriteTLV ¶
WriteTLV writes a type-length-value record to w.
func WriteType ¶
WriteType writes the type in a TLV record to w.
Source Files ¶
- Version
- v1.12.0 (latest)
- Published
- Apr 8, 2025
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 2 days ago –
Tools for package owners.