goinmemfile

package module
v0.0.0-...-0e59108 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: GPL-3.0 Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InMemFile

type InMemFile struct {
	Buffer              []byte
	GrowOnWriteOverflow bool
	// contains filtered or unexported fields
}

func NewInMemFileFromBytes

func NewInMemFileFromBytes(
	bytes []byte,
	pos int64,

	GrowOnWriteOverflow bool,
) *InMemFile

func (*InMemFile) Close

func (self *InMemFile) Close() error

func (*InMemFile) DebugPrintfln

func (self *InMemFile) DebugPrintfln(format string, data ...any)

func (*InMemFile) DebugPrintln

func (self *InMemFile) DebugPrintln(data ...any)

func (*InMemFile) RO

func (self *InMemFile) RO() *InMemFileRO

func (*InMemFile) Read

func (self *InMemFile) Read(p []byte) (n int, err error)

func (*InMemFile) Seek

func (self *InMemFile) Seek(offset int64, whence int) (int64, error)

func (*InMemFile) SetDebugName

func (self *InMemFile) SetDebugName(name string)

func (*InMemFile) Write

func (self *InMemFile) Write(p []byte) (n int, err error)

type InMemFileRO

type InMemFileRO struct {
	*InMemFile
}

func (*InMemFileRO) Write

func (self *InMemFileRO) Write(p []byte) (n int, err error)

type ReadWriteSeekCloser

type ReadWriteSeekCloser interface {
	io.Reader
	io.Writer
	io.Closer
	io.Seeker
}

Directories

Path Synopsis
tests
RO Module

Jump to

Keyboard shortcuts

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