Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chenzhuoyu/base64x
/ functions
Functions
62 in github.com/chenzhuoyu/base64x
⨍
Functions
62
◇
Types & classes
5
↓ 16 callers
Function
testEqual
(t *testing.T, msg string, args ...interface{})
base64x_test.go:156
↓ 10 callers
Method
DecodedLen
DecodedLen returns the maximum length in bytes of the decoded data corresponding to n bytes of base64-encoded data.
base64x.go:145
↓ 8 callers
Method
Decode
** 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 callers
Method
DecodeString
DecodeString returns the bytes represented by the base64 string s.
base64x.go:131
↓ 6 callers
Function
benchmarkBase64xWithSize
(b *testing.B, nb int)
base64x_test.go:214
↓ 6 callers
Function
benchmarkStdlibWithSize
(b *testing.B, nb int)
base64x_test.go:201
↓ 4 callers
Method
EncodedLen
EncodedLen returns the length in bytes of the base64 encoding of an input buffer of length n.
base64x.go:89
↓ 4 callers
Function
decode_block
Return 0 if success, otherwise return the error position + 1 */
native/native.c:343
↓ 4 callers
Function
noEscape
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 callers
Method
EncodeToString
EncodeToString returns the base64 encoding of src.
base64x.go:78
↓ 3 callers
Function
b64decode
native/native.c:426
↓ 3 callers
Function
b64encode
native/native.c:78
↓ 2 callers
Method
DecodeUnsafe
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 callers
Method
Encode
** 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 callers
Method
EncodeUnsafe
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 callers
Function
encode_avx2
native/native.c:57
↓ 2 callers
Function
hasbetween
native/native.c:297
↓ 1 callers
Function
benchmarkBase64xDecoder
(b *testing.B, v string)
base64x_test.go:350
↓ 1 callers
Function
benchmarkStdlibDecoder
(b *testing.B, v string)
base64x_test.go:338
↓ 1 callers
Function
decode_avx2
native/native.c:256
↓ 1 callers
Function
fuzzBase64CommonImpl
(t *testing.T, data []byte)
fuzz_test.go:45
↓ 1 callers
Function
fuzzBase64JsonImpl
(t *testing.T, data []byte)
fuzz_test.go:63
↓ 1 callers
Function
hasAVX2
()
cpuid.go:10
↓ 1 callers
Function
hasless
native/native.c:289
↓ 1 callers
Function
hasmore
native/native.c:293
↓ 1 callers
Function
mem2addr
(v []byte)
faststr.go:21
↓ 1 callers
Function
mem2str
(v []byte)
faststr.go:8
↓ 1 callers
Function
rawRef
Convert a reference string to raw, unpadded format
base64x_test.go:140
↓ 1 callers
Function
str2mem
(s string)
faststr.go:14
↓ 1 callers
Function
unhex16_fast
native/native.c:310
↓ 1 callers
Function
unhex16_is
native/native.c:305
↓ 1 callers
Function
urlRef
Convert a reference string to URL-encoding
base64x_test.go:133
Function
BenchmarkDecoderBase64x
(b *testing.B)
base64x_test.go:364
Function
BenchmarkDecoderStdLib
(b *testing.B)
base64x_test.go:363
Function
BenchmarkEncoderBase64x_128B
(b *testing.B)
base64x_test.go:236
Function
BenchmarkEncoderBase64x_16B
(b *testing.B)
base64x_test.go:234
Function
BenchmarkEncoderBase64x_1MB
(b *testing.B)
base64x_test.go:239
Function
BenchmarkEncoderBase64x_256kB
(b *testing.B)
base64x_test.go:238
Function
BenchmarkEncoderBase64x_4kB
(b *testing.B)
base64x_test.go:237
Function
BenchmarkEncoderBase64x_56B
(b *testing.B)
base64x_test.go:235
Function
BenchmarkEncoderStdlib_128B
(b *testing.B)
base64x_test.go:229
Function
BenchmarkEncoderStdlib_16B
(b *testing.B)
base64x_test.go:227
Function
BenchmarkEncoderStdlib_1MB
(b *testing.B)
base64x_test.go:232
Function
BenchmarkEncoderStdlib_256kB
(b *testing.B)
base64x_test.go:231
Function
BenchmarkEncoderStdlib_4kB
(b *testing.B)
base64x_test.go:230
Function
BenchmarkEncoderStdlib_56B
(b *testing.B)
base64x_test.go:228
Function
FuzzMain
(f *testing.F)
fuzz_test.go:11
Function
TestDecoder
(t *testing.T)
base64x_test.go:241
Function
TestDecoderCRLF
(t *testing.T)
base64x_test.go:283
Function
TestDecoderError
(t *testing.T)
base64x_test.go:315
Function
TestDecoderJSON
(t *testing.T)
base64x_test.go:300
Function
TestDecoderRecover
(t *testing.T)
base64x_test.go:258
Function
TestEncoder
(t *testing.T)
base64x_test.go:192
Function
TestEncoderRecover
(t *testing.T)
base64x_test.go:165
Function
b64decode
go:nosplit
native_amd64.go:16
Function
b64encode
go:nosplit
native_amd64.go:11
Function
fuzzBase64Impl
(t *testing.T, data []byte)
fuzz_test.go:28
Function
init
()
native_amd64.go:37
Function
memcopy_24
native/native.c:250
Function
rawURLRef
Both URL and unpadding conversions
base64x_test.go:145
Function
stdRef
Do nothing to a reference base64 string (leave in standard format)
base64x_test.go:128
Function
unescape_asc
native/native.c:318