mirror of
https://github.com/qntm/base65536
synced 2025-11-12 19:34:41 +01:00
Compare commits
2 Commits
0d936eab75
...
f4917c74f5
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f4917c74f5 | ||
|
|
378ea5a4f9 |
@ -127,7 +127,7 @@ import { encode, decode } from 'base65536'
|
||||
|
||||
const uint8Array = new Uint8Array([104, 101, 108, 108, 111, 32, 119, 111, 114, 108, 100])
|
||||
|
||||
const string = encode(uint8Array.buffer)
|
||||
const string = encode(uint8Array)
|
||||
console.log(string);
|
||||
// 6 code points, '驨ꍬ啯𒁷ꍲᕤ'
|
||||
|
||||
|
||||
@ -81,3 +81,6 @@ export default () => SafeCodePoint('8.0.0').then(safeCodePoint => {
|
||||
// * Perhaps try to find larger blocks of 512 or 1024 code points rather than
|
||||
// 256, or other techniques for reducing the size of the lookup tables.
|
||||
// * Choose all characters with the same East_Asian_Width of 'W' (wide).
|
||||
// * Make Base65536 big-endian, so that [0x00 0x00] and [0x00 0x01] encode to
|
||||
// code points which are separated by 1 - this would simplify decoding and be
|
||||
// more consistent with my other encodings.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user