slp

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package slp implements "shallow length prefixed" data. Each element in a slice is prefixed by a uint16 for it's length.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(input []byte) [][]byte

Decode turns an SLP input into a slice of byte slices

func Encode

func Encode(list ...[]byte) ([]byte, error)

Encode appends the SLP-encoding of a list to out and returns the resulting slice.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL