file

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultPoolBuffer int64 = 4 * 1024   // 4KB
	ExtractBuffer     int64 = 64 * 1024  // 64KB
	MaxPoolBuffer     int64 = 128 * 1024 // 128KB
	MaxBytes          int64 = 1 << 32    // 4096MB
	ReadBuffer        int64 = 64 * 1024  // 64KB
	ZipBuffer         int64 = 2 * 1024   // 2KB
)

common values used across malcontent for extracting and reading files.

Variables

This section is empty.

Functions

func GetContents

func GetContents(f *os.File, buf []byte) ([]byte, error)

GetContents takes a file, reads its contents, and returns them as a slice of bytes.

Types

This section is empty.

Jump to

Keyboard shortcuts

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