byte icon indicating copy to clipboard operation
byte copied to clipboard

Input Buffer and Output Buffer, just like Java ByteBuffer

Results 5 byte issues
Sort by recently updated
recently updated
newest added

BTW: js CESU-8 encoding is faster then Buffer UTF-8 encoding ``` putRawStringSmallLessThan0x80*10000: 672.642ms putRawStringSmallLessThan0x800*10000: 592.960ms putRawStringSmallBiggerThan0x800*10000: 861.010ms putUTF8RawStringSmallLessThan0x80*10000: 841.638ms putUTF8RawStringSmallLessThan0x800*10000: 958.383ms putUTF8RawStringSmallBiggerThan0x800*10000: 1793.470ms ```

```js console.time('byte'); require('byte'); console.timeEnd('byte'); ``` 优化前 ```bash byte: 55.795ms ``` 优化后 ```bash byte: 3.092ms ```

use getByte() instead of get()

enhancement

Currently, `_size` and `_limit` is incorrect when `options.array` passed in constructor unless you set it explicitly. This PR will auto set it according to the `length` of `options.array`.