bytes

package
v7.8.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Buffer

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

func NewBuffer

func NewBuffer() *Buffer

func (*Buffer) Buffer

func (p *Buffer) Buffer() []byte

func (*Buffer) Len

func (p *Buffer) Len() int

func (*Buffer) ReadAt

func (p *Buffer) ReadAt(buf []byte, off int64) (n int, err error)

func (*Buffer) Truncate

func (p *Buffer) Truncate(fsize int64) (err error)

func (*Buffer) WriteAt

func (p *Buffer) WriteAt(buf []byte, off int64) (n int, err error)

func (*Buffer) WriteStringAt

func (p *Buffer) WriteStringAt(buf string, off int64) (n int, err error)

type Reader

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

func NewReader

func NewReader(val []byte) *Reader

func (*Reader) Bytes

func (r *Reader) Bytes() []byte

func (*Reader) Close

func (r *Reader) Close() (err error)

func (*Reader) Len

func (r *Reader) Len() int

func (*Reader) Read

func (r *Reader) Read(val []byte) (n int, err error)

func (*Reader) Seek

func (r *Reader) Seek(offset int64, whence int) (ret int64, err error)

func (*Reader) SeekToBegin

func (r *Reader) SeekToBegin() (err error)

type Writer

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

func NewWriter

func NewWriter(buff []byte) *Writer

func (*Writer) Bytes

func (p *Writer) Bytes() []byte

func (*Writer) Len

func (p *Writer) Len() int

func (*Writer) Reset

func (p *Writer) Reset()

func (*Writer) Write

func (p *Writer) Write(val []byte) (n int, err error)

Directories

Path Synopsis
This package provide a method to read and replace http.Request's body.
This package provide a method to read and replace http.Request's body.

Jump to

Keyboard shortcuts

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