padbuf

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package padbuf implements a simple buffer that knows how to pad/unpad itself so that the buffer size aligns with an arbitrary block size.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PadBuffer

type PadBuffer []byte

func (PadBuffer) Len

func (pb PadBuffer) Len() int

func (PadBuffer) Pad

func (pb PadBuffer) Pad(n int) PadBuffer

func (PadBuffer) Resize

func (pb PadBuffer) Resize(newlen int) PadBuffer

func (PadBuffer) Unpad

func (pb PadBuffer) Unpad(n int) (PadBuffer, error)

Jump to

Keyboard shortcuts

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