stream

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 7 Imported by: ? modules, 0 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.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = New()

Functions

This section is empty.

Types

type Stream

type Stream struct{ *bytes.Buffer }

func New

func New() *Stream

func NewBuffer

func NewBuffer(buf *bytes.Buffer) *Stream

func NewBytes

func NewBytes(b []byte) *Stream

func NewErrorInfo

func NewErrorInfo(err string) *Stream

func NewHexString

func NewHexString(ss string) (b *Stream)

func NewHexStringOrBytes

func NewHexStringOrBytes(data any) (b *Stream)

func NewNil

func NewNil() *Stream

func NewString

func NewString(ss string) *Stream

func (*Stream) Append

func (s *Stream) Append(buffer ...*Stream)

func (*Stream) BigNumXorWithAlign

func (s *Stream) BigNumXorWithAlign(arg1, arg2 []byte, align int) (xorStream []byte)

func (*Stream) CutWithIndex

func (s *Stream) CutWithIndex(x, y int)

func (*Stream) ErrorInfo

func (s *Stream) ErrorInfo() string

func (*Stream) HexString

func (s *Stream) HexString() string

func (*Stream) HexStringUpper

func (s *Stream) HexStringUpper() string

func (*Stream) Indent

func (s *Stream) Indent(deep int) string

func (*Stream) InsertString

func (s *Stream) InsertString(size int, separate string) (ss string)

func (*Stream) LinesToString

func (s *Stream) LinesToString(lines []string) string

func (*Stream) Merge

func (s *Stream) Merge(bytesSlice ...[]byte) *Stream

func (*Stream) NewLine

func (s *Stream) NewLine()

func (*Stream) ObjectBegin

func (s *Stream) ObjectBegin()

func (*Stream) ObjectEnd

func (s *Stream) ObjectEnd()

func (*Stream) Quote

func (s *Stream) Quote()

func (*Stream) QuoteWith

func (s *Stream) QuoteWith(ss string)

func (*Stream) RemoveHexDumpNewLine

func (s *Stream) RemoveHexDumpNewLine(dump string) (newDump string)

func (*Stream) SizeCheck

func (s *Stream) SizeCheck() bool

func (*Stream) SliceBegin

func (s *Stream) SliceBegin()

func (*Stream) SliceEnd

func (s *Stream) SliceEnd()

func (*Stream) SplitBytes

func (s *Stream) SplitBytes(size int) (blocks [][]byte)

func (*Stream) SplitString

func (s *Stream) SplitString(size int) (blocks []string)

func (*Stream) WriteBytesLn

func (s *Stream) WriteBytesLn(p []byte)

func (*Stream) WriteStringLn

func (s *Stream) WriteStringLn(ss string)

func (*Stream) WriteXMakeBody

func (s *Stream) WriteXMakeBody(key string, values ...string)

type Type

type Type interface {
	~string | ~[]byte | ~*bytes.Buffer //todo and test type rename
}

Directories

Path Synopsis
cmd
cmd/m command

Jump to

Keyboard shortcuts

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