internal

package
v2.0.0-beta1 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2022 License: BSD-2-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KindDirectIface = 1 << 5
	KindMask        = (1 << 5) - 1
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Chan

type Chan struct {
	QueueCount    uint           // total data in the queue
	DataQueueSize uint           // size of the circular queue
	Buf           unsafe.Pointer // points to an array of dataqsiz elements
	ElemSize      uint16
	Closed        uint32
}

Chan for go channel

type Interface

type Interface struct {
	Type  unsafe.Pointer
	Value unsafe.Pointer
}

Interface having same structure with go interface

type Mutex

type Mutex struct {
	State int32
	Sema  uint32
}

Mutex copy from sync.Mutex

type SliceHeader

type SliceHeader struct {
	Data unsafe.Pointer
	Len  int
	Cap  int
}

SliceHeader copy from reflect.SliceHeader, using Data type unsafe.Pointer instead of unitptr, to prevent stack allocation, or free by gc

type StringHeader

type StringHeader struct {
	Data unsafe.Pointer
	Len  int
}

StringHeader copy from reflect.StringHeader, using Data type unsafe.Pointer instead of unitptr, to prevent stack allocation, or free by gc

Jump to

Keyboard shortcuts

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