pad4

package
v0.0.0-...-1ff0e3b Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2017 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Writer

type Writer struct {
	// contains filtered or unexported fields
}

A Writer is an io.WriteCloser. Writes are padded with zeros to 4 byte boundary

func NewWriter

func NewWriter(w io.Writer) *Writer

NewWriter provides a new io.WriteCloser that zero pads the output to a multiple of four bytes

func (Writer) Close

func (pad Writer) Close() error

Close adds the padding

func (Writer) Write

func (pad Writer) Write(p []byte) (int, error)

Write writes output

Jump to

Keyboard shortcuts

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