MCPcopy Create free account

hub / github.com/chenzhuoyu/base64x / functions

Functions62 in github.com/chenzhuoyu/base64x

↓ 16 callersFunctiontestEqual
(t *testing.T, msg string, args ...interface{})
base64x_test.go:156
↓ 10 callersMethodDecodedLen
DecodedLen returns the maximum length in bytes of the decoded data corresponding to n bytes of base64-encoded data.
base64x.go:145
↓ 8 callersMethodDecode
** Decoder Functions **/ Decode decodes src using the encoding enc. It writes at most DecodedLen(len(src)) bytes to out and returns the number of byte
base64x.go:108
↓ 8 callersMethodDecodeString
DecodeString returns the bytes represented by the base64 string s.
base64x.go:131
↓ 6 callersFunctionbenchmarkBase64xWithSize
(b *testing.B, nb int)
base64x_test.go:214
↓ 6 callersFunctionbenchmarkStdlibWithSize
(b *testing.B, nb int)
base64x_test.go:201
↓ 4 callersMethodEncodedLen
EncodedLen returns the length in bytes of the base64 encoding of an input buffer of length n.
base64x.go:89
↓ 4 callersFunctiondecode_block
Return 0 if success, otherwise return the error position + 1 */
native/native.c:343
↓ 4 callersFunctionnoEscape
NoEscape hides a pointer from escape analysis. NoEscape is the identity function but escape analysis doesn't think the output depends on the input. No
faststr.go:32
↓ 3 callersMethodEncodeToString
EncodeToString returns the base64 encoding of src.
base64x.go:78
↓ 3 callersFunctionb64decode
native/native.c:426
↓ 3 callersFunctionb64encode
native/native.c:78
↓ 2 callersMethodDecodeUnsafe
DecodeUnsafe behaves like Decode, except it does NOT check if out is large enough to contain the decoded result. It will also update the length of ou
base64x.go:122
↓ 2 callersMethodEncode
** Encoder Functions **/ Encode encodes src using the specified encoding, writing EncodedLen(len(src)) bytes to out. The encoding pads the output to
base64x.go:59
↓ 2 callersMethodEncodeUnsafe
EncodeUnsafe behaves like Encode, except it does NOT check if out is large enough to contain the encoded result. It will also update the length of ou
base64x.go:73
↓ 2 callersFunctionencode_avx2
native/native.c:57
↓ 2 callersFunctionhasbetween
native/native.c:297
↓ 1 callersFunctionbenchmarkBase64xDecoder
(b *testing.B, v string)
base64x_test.go:350
↓ 1 callersFunctionbenchmarkStdlibDecoder
(b *testing.B, v string)
base64x_test.go:338
↓ 1 callersFunctiondecode_avx2
native/native.c:256
↓ 1 callersFunctionfuzzBase64CommonImpl
(t *testing.T, data []byte)
fuzz_test.go:45
↓ 1 callersFunctionfuzzBase64JsonImpl
(t *testing.T, data []byte)
fuzz_test.go:63
↓ 1 callersFunctionhasAVX2
()
cpuid.go:10
↓ 1 callersFunctionhasless
native/native.c:289
↓ 1 callersFunctionhasmore
native/native.c:293
↓ 1 callersFunctionmem2addr
(v []byte)
faststr.go:21
↓ 1 callersFunctionmem2str
(v []byte)
faststr.go:8
↓ 1 callersFunctionrawRef
Convert a reference string to raw, unpadded format
base64x_test.go:140
↓ 1 callersFunctionstr2mem
(s string)
faststr.go:14
↓ 1 callersFunctionunhex16_fast
native/native.c:310
↓ 1 callersFunctionunhex16_is
native/native.c:305
↓ 1 callersFunctionurlRef
Convert a reference string to URL-encoding
base64x_test.go:133
FunctionBenchmarkDecoderBase64x
(b *testing.B)
base64x_test.go:364
FunctionBenchmarkDecoderStdLib
(b *testing.B)
base64x_test.go:363
FunctionBenchmarkEncoderBase64x_128B
(b *testing.B)
base64x_test.go:236
FunctionBenchmarkEncoderBase64x_16B
(b *testing.B)
base64x_test.go:234
FunctionBenchmarkEncoderBase64x_1MB
(b *testing.B)
base64x_test.go:239
FunctionBenchmarkEncoderBase64x_256kB
(b *testing.B)
base64x_test.go:238
FunctionBenchmarkEncoderBase64x_4kB
(b *testing.B)
base64x_test.go:237
FunctionBenchmarkEncoderBase64x_56B
(b *testing.B)
base64x_test.go:235
FunctionBenchmarkEncoderStdlib_128B
(b *testing.B)
base64x_test.go:229
FunctionBenchmarkEncoderStdlib_16B
(b *testing.B)
base64x_test.go:227
FunctionBenchmarkEncoderStdlib_1MB
(b *testing.B)
base64x_test.go:232
FunctionBenchmarkEncoderStdlib_256kB
(b *testing.B)
base64x_test.go:231
FunctionBenchmarkEncoderStdlib_4kB
(b *testing.B)
base64x_test.go:230
FunctionBenchmarkEncoderStdlib_56B
(b *testing.B)
base64x_test.go:228
FunctionFuzzMain
(f *testing.F)
fuzz_test.go:11
FunctionTestDecoder
(t *testing.T)
base64x_test.go:241
FunctionTestDecoderCRLF
(t *testing.T)
base64x_test.go:283
FunctionTestDecoderError
(t *testing.T)
base64x_test.go:315
FunctionTestDecoderJSON
(t *testing.T)
base64x_test.go:300
FunctionTestDecoderRecover
(t *testing.T)
base64x_test.go:258
FunctionTestEncoder
(t *testing.T)
base64x_test.go:192
FunctionTestEncoderRecover
(t *testing.T)
base64x_test.go:165
Functionb64decode
go:nosplit
native_amd64.go:16
Functionb64encode
go:nosplit
native_amd64.go:11
FunctionfuzzBase64Impl
(t *testing.T, data []byte)
fuzz_test.go:28
Functioninit
()
native_amd64.go:37
Functionmemcopy_24
native/native.c:250
FunctionrawURLRef
Both URL and unpadding conversions
base64x_test.go:145
FunctionstdRef
Do nothing to a reference base64 string (leave in standard format)
base64x_test.go:128
Functionunescape_asc
native/native.c:318