MCPcopy Create free account
hub / github.com/apache/fory / NewEncoder

Function NewEncoder

go/fory/meta/meta_string_encoder.go:30–35  ·  view source on GitHub ↗
(specialCh1 byte, specialCh2 byte)

Source from the content-addressed store, hash-verified

28}
29
30func NewEncoder(specialCh1 byte, specialCh2 byte) *Encoder {
31 return &Encoder{
32 specialChar1: specialCh1,
33 specialChar2: specialCh2,
34 }
35}
36
37// Encode the input string to MetaString using adaptive encoding
38func (e *Encoder) Encode(input string) (MetaString, error) {

Callers 4

TestAsciiEncodingFunction · 0.85
TestNonAsciiEncodingFunction · 0.85

Calls

no outgoing calls

Tested by 4

TestAsciiEncodingFunction · 0.68
TestNonAsciiEncodingFunction · 0.68