core

package
v0.0.0-...-1173c81 Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteView

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

A ByteView holds an immutable view of bytes.

func NewByteView

func NewByteView(b []byte) ByteView

func (ByteView) ByteSlice

func (v ByteView) ByteSlice() []byte

ByteSlice returns a copy of the data as a byte slice.

func (ByteView) Len

func (v ByteView) Len() int

func (ByteView) String

func (v ByteView) String() string

String returns the data as a string, making a copy if necessary., b is read-only

type Scache

type Scache struct {
	CacheBytes int64
	// contains filtered or unexported fields
}

func (*Scache) Get

func (s *Scache) Get(key string) (value *ByteView, ok bool)

func (*Scache) Set

func (s *Scache) Set(key string, value ByteView)

Jump to

Keyboard shortcuts

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