Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/GoEdgeLab/EdgeNode
/ Encode
Method
Encode
internal/utils/kvstore/value_encoder.go:8–8 ·
view source on GitHub ↗
(value T)
Source
from the content-addressed store, hash-verified
6
7
type
ValueEncoder[T any]
interface
{
8
Encode(value T) ([]byte, error)
9
EncodeField(value T, fieldName string) ([]byte, error)
10
Decode(valueBytes []byte) (value T, err error)
11
}
Callers
15
TestNewLazyFileHeaderFromData
Function · 0.65
BenchmarkLazyFileHeader_Decode
Function · 0.65
TestFileHeader_Encode
Function · 0.65
BenchmarkFileHeader_Encode
Function · 0.65
WriteClose
Method · 0.65
Compact
Method · 0.65
Set
Method · 0.65
SetSync
Method · 0.65
Insert
Method · 0.65
Set
Method · 0.65
SetSync
Method · 0.65
Insert
Method · 0.65
Calls
no outgoing calls
Tested by
15
TestNewLazyFileHeaderFromData
Function · 0.52
BenchmarkLazyFileHeader_Decode
Function · 0.52
TestFileHeader_Encode
Function · 0.52
BenchmarkFileHeader_Encode
Function · 0.52
TestStringValueEncoder_Encode
Function · 0.52
TestIntValueEncoder_Encode
Function · 0.52
TestBytesValueEncoder_Encode
Function · 0.52
TestBytesValueEncoder_Bool
Function · 0.52
TestBaseObjectEncoder_Encode
Function · 0.52
TestBaseObjectEncoder_Encode2
Function · 0.52
BenchmarkStringValueEncoder_Encode
Function · 0.52
BenchmarkIntValueEncoder_Encode
Function · 0.52