mirror of
https://github.com/kovidgoyal/kitty
synced 2026-06-08 14:18:26 +02:00
Use SIMD base64 encoding for graphics transmission
This commit is contained in:
@@ -19,10 +19,7 @@ func collectDecode(t *testing.T, d *StreamingBase64Decoder, encoded []byte, chun
|
||||
t.Helper()
|
||||
var result []byte
|
||||
for len(encoded) > 0 {
|
||||
end := chunkSize
|
||||
if end > len(encoded) {
|
||||
end = len(encoded)
|
||||
}
|
||||
end := min(chunkSize, len(encoded))
|
||||
chunk := encoded[:end]
|
||||
encoded = encoded[end:]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user