ctrutil

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: May 26, 2020 License: ISC Imports: 4 Imported by: 0

Documentation

Overview

Package ctrutil contains various utilities used by ctrsigcheck.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeUTF16

func DecodeUTF16(src []byte, order binary.ByteOrder) string

DecodeUTF16 string from the given bytes using the given ByteOrder.

Types

type Reader

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

Reader wraps another Reader to add some capabilities.

func NewReader

func NewReader(inner io.Reader) *Reader

NewReader wraps the given Reader to add some capabilities.

func (*Reader) Discard

func (r *Reader) Discard(n int64) error

Discard the next n bytes.

Returns ErrUnexpectedEOF is EOF has been reached prematurely.

func (*Reader) Err

func (r *Reader) Err() error

Err that has been returned by the last Read.

func (*Reader) Offset

func (r *Reader) Offset() int64

Offset of the next byte to be read.

func (*Reader) Read

func (r *Reader) Read(p []byte) (int, error)

Jump to

Keyboard shortcuts

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