buffer

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2019 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
}

Buffer is a threadsafe buffer

func (*Buffer) Read

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

Read in a thread-safe way

func (*Buffer) ReadString

func (b *Buffer) ReadString(delim byte) (line string, err error)

ReadString in a thread-safe way

func (*Buffer) String

func (b *Buffer) String() string

String in a thread-safe way

func (*Buffer) Write

func (b *Buffer) Write(p []byte) (n int, err error)

Write in a thread-safe way

func (*Buffer) WriteString

func (b *Buffer) WriteString(s string) (n int, err error)

WriteString in a thread-safe way

Jump to

Keyboard shortcuts

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