internal

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package internal Author: hyphen Copyright 2024 hyphen. All rights reserved. Create-time: 2024/3/12

Package internal Author: hyphen Copyright 2024 hyphen. All rights reserved. Create-time: 2024/3/18

Package internal Author: hyphen Copyright 2024 hyphen. All rights reserved. Create-time: 2024/3/12

Package internal Author: hyphen Copyright 2024 hyphen. All rights reserved. Create-time: 2024/4/2

Index

Constants

View Source
const PtrSize = 4 << (^uintptr(0) >> 63)

Variables

This section is empty.

Functions

func Lowhash added in v0.1.0

func Lowhash(hash uintptr, B uint8) uintptr

func MemAllocMmap

func MemAllocMmap[T any](len int) (uintptr, uintptr, error)

func MemFreeMunmap

func MemFreeMunmap(addr uintptr, offset uintptr) error

func MemFreeMunmapG added in v0.0.2

func MemFreeMunmapG[T any](addr uintptr, len int) error

func OverLoadFactor added in v0.1.0

func OverLoadFactor(count int, B uint8) bool

func ScaleG added in v0.0.2

func ScaleG[T any](data uintptr, old, new int, sw *uintptr) (uintptr, uintptr, error)

ScaleG sw不为空则会在释放原有内存前将sw的内容更改为新内存起点

func Tophash added in v0.1.0

func Tophash(hash uintptr) uint8

Types

type Hasher added in v0.0.2

type Hasher func(unsafe.Pointer, uintptr) uintptr

func GetRuntimeHasher added in v0.0.2

func GetRuntimeHasher[K comparable]() (h Hasher, seed uintptr)

type SysCallErr

type SysCallErr struct {
	Errno syscall.Errno
	Msg   string
}

func NewSysCallErr

func NewSysCallErr(e syscall.Errno, m string) *SysCallErr

func (*SysCallErr) Error

func (s *SysCallErr) Error() string

type TestType added in v0.1.0

type TestType struct {
	Str    string
	Map    map[string]string
	Value  int
	Str2   string
	Str3   string
	Str4   string
	Str5   string
	Str6   string
	Str7   string
	Str8   string
	Value2 int
	Value3 int
	Value4 int
	Value5 int
	Value6 int
	Value7 int
}

func GenTestType added in v0.1.0

func GenTestType() *TestType

Jump to

Keyboard shortcuts

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