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

Method decodeLowerSpecialChar

go/fory/meta/meta_string_decoder.go:136–151  ·  view source on GitHub ↗

** Decoding char for LOWER_SPECIAL Encoding Algorithm */

(charValue byte)

Source from the content-addressed store, hash-verified

134
135/** Decoding char for LOWER_SPECIAL Encoding Algorithm */
136func (d *Decoder) decodeLowerSpecialChar(charValue byte) (val byte, err error) {
137 if charValue <= 25 {
138 val = 'a' + charValue
139 } else if charValue == 26 {
140 val = '.'
141 } else if charValue == 27 {
142 val = '_'
143 } else if charValue == 28 {
144 val = '$'
145 } else if charValue == 29 {
146 val = '|'
147 } else {
148 err = fmt.Errorf("Invalid character value for LOWER_SPECIAL: %v\n", charValue)
149 }
150 return
151}
152
153/** Decoding char for LOWER_UPPER_DIGIT_SPECIAL Encoding Algorithm. */
154func (d *Decoder) decodeLowerUpperDigitSpecialChar(charValue byte) (val byte, err error) {

Callers 1

decodeCharMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected