bytesx

package
v2.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package bytesx implements bytes extensions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResetReader

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

ResetReader implements the io.Reader reading from a resettable byte slice.

func NewResetReader

func NewResetReader(b []byte) *ResetReader

NewResetReader returns a new ResetReader reading from b.

func (*ResetReader) Read

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

Read reads bytes into p.

func (*ResetReader) Reset

func (r *ResetReader) Reset(b []byte)

Reset resets the byte slice being read from.

Jump to

Keyboard shortcuts

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