unsafe2

package
v0.0.0-...-de1ad02 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const MinOffheapSlice = 1024 * 16

Variables

This section is empty.

Functions

func CastString

func CastString(b []byte) string

func FreeSlice

func FreeSlice(s Slice)

func MaxOffheapBytes

func MaxOffheapBytes() int64

func OffheapBytes

func OffheapBytes() int64

func SetMaxOffheapBytes

func SetMaxOffheapBytes(n int64)

Types

type Slice

type Slice interface {
	Type() string

	Buffer() []byte

	Slice2(beg, end int) Slice
	Slice3(beg, end, cap int) Slice
	Parent() Slice
	// contains filtered or unexported methods
}

func MakeOffheapSlice

func MakeOffheapSlice(n int) Slice

func MakeSlice

func MakeSlice(n int) Slice

Jump to

Keyboard shortcuts

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