/
uzer_007
/
gobase64
Обзор
Документация
Войти
/
uzer_007
/
gobase64
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
encode_string_generic.go
204 строки
5 KB
uzer_007
release: v1.1.0
19 часов назад
19 часов назад
b80d01d
Код
Авторство
О чём код?
//go:build race || purego || !(386 || amd64 || arm64 || wasm) package base64 func encodeStringStdPadded1Fast(t *encodingTables, src []byte) string { return encodeStringStdPadded1(t, src) } func encodeStringStdPadded2Fast(t *encodingTables, src []byte) string { return encodeStringStdPadded2(t, src) } func encodeStringStdPadded3Fast(t *encodingTables, src []byte) string { return encodeStringStdPadded3(t, src) } func encodeStringStdPadded4Fast(t *encodingTables, src []byte) string { return encodeStringStdPadded4(t, src) } func encodeStringStdPadded5Fast(t *encodingTables, src []byte) string { return encodeStringStdPadded5(t, src) } func encodeStringStdPadded6Fast(t *encodingTables, src []byte) string { return encodeStringStdPadded6(t, src) } func encodeStringStdPadded7Fast(t *encodingTables, src []byte) string { return encodeStringStdPadded7(t, src) } func encodeStringStdPadded8Fast(t *encodingTables, src []byte) string { return encodeStringStdPadded8(t, src) } func encodeStringStdPadded9Fast(t *encodingTables, src []byte) string { buf := new([12]byte) encodeTinyStdPadded(t, buf[:], src) return bytesToString(buf[:]) } func encodeStringStdPadded10Fast(t *encodingTables, src []byte) string { buf := new([16]byte) encodeTinyStdPadded(t, buf[:], src) return bytesToString(buf[:]) } func encodeStringStdPadded11Fast(t *encodingTables, src []byte) string { buf := new([16]byte) encodeTinyStdPadded(t, buf[:], src) return bytesToString(buf[:]) } func encodeStringStdPadded12Fast(t *encodingTables, src []byte) string { buf := new([16]byte) encodeTinyStdPadded(t, buf[:], src) return bytesToString(buf[:]) } func encodeStringStdPadded13Fast(t *encodingTables, src []byte) string { buf := new([20]byte) encodeTinyStdPadded(t, buf[:], src) return bytesToString(buf[:]) } func encodeStringStdPadded14Fast(t *encodingTables, src []byte) string { buf := new([20]byte) encodeTinyStdPadded(t, buf[:], src) return bytesToString(buf[:]) } func encodeStringStdPadded15Fast(t *encodingTables, src []byte) string { buf := new([20]byte) encodeTinyStdPadded(t, buf[:], src) return bytesToString(buf[:]) } func encodeStringStdPadded16Fast(t *encodingTables, src []byte) string { return encodeStringStdPadded16(t, src) } func encodeStringStdPadded24Fast(t *encodingTables, src []byte) string { buf := new([32]byte) encodeSmallStdPadded(t, buf[:], src) return bytesToString(buf[:]) } func encodeStringStdPadded32Fast(t *encodingTables, src []byte) string { buf := new([44]byte) encodeStdPadded32(t, buf[:], src) return bytesToString(buf[:]) } func encodeStringStdPadded48Fast(t *encodingTables, src []byte) string { buf := new([64]byte) encodeStdPaddedScalar(t, buf[:], src) return string(buf[:]) } func encodeStringStdPadded64Fast(t *encodingTables, src []byte) string { buf := make([]byte, 88) encodeStdPaddedScalar(t, buf, src) return bytesToString(buf) } func encodeStringStdPadded96Fast(t *encodingTables, src []byte) string { buf := make([]byte, 128) encodeFullQuantaScalar(t, buf, src) return bytesToString(buf) } func encodeBytesStdPadded1Fast(t *encodingTables, src []byte) []byte { buf := make([]byte, 4) encodeTinyStdPadded12(t, buf, src) return buf } func encodeBytesStdPadded2Fast(t *encodingTables, src []byte) []byte { buf := new([4]byte) encodeTinyStdPadded12(t, buf[:], src) return buf[:] } func encodeBytesStdPadded3Fast(t *encodingTables, src []byte) []byte { buf := new([4]byte) encodeQuantum(t, buf[:], src) return buf[:] } func encodeBytesStdPadded4Fast(t *encodingTables, src []byte) []byte { buf := make([]byte, 8) encodeStdPadded4(t, buf, src) return buf } func encodeBytesStdPadded5Fast(t *encodingTables, src []byte) []byte { buf := make([]byte, 8) encodeStdPadded4(t, buf, src) return buf } func encodeBytesStdPadded6Fast(t *encodingTables, src []byte) []byte { buf := make([]byte, 8) encodeQuantum(t, buf, src) encodeQuantum(t, buf[4:], src[3:]) return buf } func encodeBytesStdPadded7Fast(t *encodingTables, src []byte) []byte { buf := make([]byte, 12) encodeQuantum(t, buf, src) encodeQuantum(t, buf[4:], src[3:]) encodeTailStd(t, buf[8:], src[6:]) return buf } func encodeBytesStdPadded8Fast(t *encodingTables, src []byte) []byte { buf := make([]byte, 12) encodeStdPadded8(t, buf, src) return buf } func encodeBytesStdPadded9Fast(t *encodingTables, src []byte) []byte { buf := make([]byte, 12) encodeTinyStdPadded(t, buf, src) return buf } func encodeBytesStdPadded10Fast(t *encodingTables, src []byte) []byte { buf := make([]byte, 16) encodeTinyStdPadded(t, buf, src) return buf } func encodeBytesStdPadded11Fast(t *encodingTables, src []byte) []byte { buf := make([]byte, 16) encodeTinyStdPadded(t, buf, src) return buf } func encodeBytesStdPadded12Fast(t *encodingTables, src []byte) []byte { buf := make([]byte, 16) encodeTinyStdPadded(t, buf, src) return buf } func encodeBytesStdPadded13Fast(t *encodingTables, src []byte) []byte { buf := make([]byte, 20) encodeTinyStdPadded(t, buf, src) return buf } func encodeBytesStdPadded14Fast(t *encodingTables, src []byte) []byte { buf := make([]byte, 20) encodeTinyStdPadded(t, buf, src) return buf } func encodeBytesStdPadded15Fast(t *encodingTables, src []byte) []byte { buf := make([]byte, 20) encodeTinyStdPadded(t, buf, src) return buf }