sync

package
v0.0.390 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Discard = discard{io.Discard}

Functions

func SyncWriter

func SyncWriter(w io.Writer) io.Writer

Types

type ByteBuffer

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

func NewByteBuffer

func NewByteBuffer() *ByteBuffer

func (*ByteBuffer) Reader

func (sb *ByteBuffer) Reader() io.ReadCloser

func (*ByteBuffer) Seal

func (sb *ByteBuffer) Seal() *Sealed

func (*ByteBuffer) Snapshot

func (sb *ByteBuffer) Snapshot(copyBytes bool) []byte

func (*ByteBuffer) Write

func (sb *ByteBuffer) Write(p []byte) (int, error)

func (*ByteBuffer) Writer

func (sb *ByteBuffer) Writer() io.Writer

type Sealed

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

func Seal

func Seal(b []byte) *Sealed

func (*Sealed) Bytes

func (s *Sealed) Bytes() []byte

func (*Sealed) Reader

func (s *Sealed) Reader() io.ReadCloser

func (*Sealed) Snapshot

func (s *Sealed) Snapshot(_ bool) []byte

func (*Sealed) Writer

func (s *Sealed) Writer() io.Writer

Jump to

Keyboard shortcuts

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