seekbuffer

package module
v0.0.0-...-7113597 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2015 License: MIT Imports: 2 Imported by: 2 modules, 2 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

seekbuffer

A buffer implement io.Seeker, io.Reader

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SeekBuffer

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

SeekBuffer is read Only

func NewSeekBuffer

func NewSeekBuffer(buf []byte) *SeekBuffer

func (*SeekBuffer) Bytes

func (b *SeekBuffer) Bytes() []byte

func (*SeekBuffer) Len

func (b *SeekBuffer) Len() int

func (*SeekBuffer) Read

func (b *SeekBuffer) Read(p []byte) (n int, err error)

func (*SeekBuffer) Seek

func (b *SeekBuffer) Seek(offset int64, whence int) (int64, error)

Seek sets the offset for the next Read or Write to offset, interpreted according to whence:

0 means relative to the origin of the file,
1 means relative to the current offset,
and 2 means relative to the end.

Seek returns the new offset and an error, if any.

func (*SeekBuffer) String

func (b *SeekBuffer) String() string

Jump to

Keyboard shortcuts

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