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

Method decodeChar

go/fory/meta/meta_string_decoder.go:125–133  ·  view source on GitHub ↗

** Decoding char for two encoding algorithms */

(val byte, encoding Encoding)

Source from the content-addressed store, hash-verified

123
124/** Decoding char for two encoding algorithms */
125func (d *Decoder) decodeChar(val byte, encoding Encoding) (byte, error) {
126 switch encoding {
127 case LOWER_SPECIAL:
128 return d.decodeLowerSpecialChar(val)
129 case LOWER_UPPER_DIGIT_SPECIAL:
130 return d.decodeLowerUpperDigitSpecialChar(val)
131 }
132 return 0, fmt.Errorf("Illegal encoding flag: %v\n", encoding)
133}
134
135/** Decoding char for LOWER_SPECIAL Encoding Algorithm */
136func (d *Decoder) decodeLowerSpecialChar(charValue byte) (val byte, err error) {

Callers 1

decodeGenericMethod · 0.95

Tested by

no test coverage detected