cache

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 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 BytecodeCache

type BytecodeCache map[int][]cacheEntry

BytecodeCache contains the bytecode cache The map index is the length of the query The value is a slice with a list of queries

func (BytecodeCache) GetEntry

func (c BytecodeCache) GetEntry(query []byte, target *string) ([]byte, []int, int)

GetEntry might return the bytecode, the fragment locations of the query and targetIdx

func (BytecodeCache) SetEntry

func (c BytecodeCache) SetEntry(query, bytecode []byte, target *string, targetIdx int, fragmentLocation []int)

SetEntry sets a new entry in the cache

Jump to

Keyboard shortcuts

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