const bytesSet = Function.prototype.call.bind(Bytes.prototype.set)
const bytesFill = Function.prototype.call.bind(Bytes.prototype.fill)
-const charCodeAt = Function.prototype.call.bind(String.prototype.charCodeAt)
-const fromCharCode = Function.prototype.call.bind(String.fromCharCode)
function get<T> (target: object, key: PropertyKey): (this: unknown) => T {
const found = Object.getOwnPropertyDescriptor(target, key)
return new Words(getBuffer(bytes) as ArrayBuffer, offset, getByteLength(bytes) >> 2)
}
-const LOWER = '0123456789abcdef'
-const UPPER = '0123456789ABCDEF'
-const NIBBLE: Record<string, number> = Object.create(null)
-for (let i = 0; i < 16; i++) {
- NIBBLE[LOWER[i]] = i
- NIBBLE[UPPER[i]] = i
-}
+const charCodeAt = Function.prototype.call.bind(String.prototype.charCodeAt)
+const fromCharCode = String.fromCharCode
/** 0-9a-f for a valid hex digit 0..15 */
function hexcode (c: number): number {