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)

    Source Files