webfs

package
v0.0.0-...-3a8b1bb Latest Latest
Warning

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

Go to latest
Published: May 16, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SendBytes = 1001
)

Variables

This section is empty.

Functions

func GzipSendBuf

func GzipSendBuf(siPtr *SendBufInfo)

func LoadFile

func LoadFile(path string) []string

Types

type BufList

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

func NewBufListPtr

func NewBufListPtr(index int32, bufBytesSize int32) *BufList

func (*BufList) GetSize

func (list *BufList) GetSize(buf BytesPtr) int32

func (*BufList) PopBuf

func (list *BufList) PopBuf() (BytesPtr, int32)

func (*BufList) PushBuf

func (list *BufList) PushBuf(buf BytesPtr)

type BufPool

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

func NewBufPool

func NewBufPool() BufPool

func (*BufPool) GetList

func (pool *BufPool) GetList(index int32) *BufList

type BytesPtr

type BytesPtr *[]byte

type SendBufInfo

type SendBufInfo struct {
	BufPtr      *[]byte
	Size        int
	FiPtr       *fs.FileInfo
	ContentType string
	GzipEnabled bool
	Success     bool
}

func FileReader

func FileReader(pathStr *string) *SendBufInfo

func ReadFileBySteps

func ReadFileBySteps(pathStr *string, beginPos int, endPos int) *SendBufInfo

Jump to

Keyboard shortcuts

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