compact-encoding 3.4.0 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/index.d.ts +3 -0
- package/index.js +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -140,6 +140,9 @@ to build others on top. Feel free to PR more that are missing.
|
|
|
140
140
|
- `cenc.utf16le`, `cenc.ucs2` - Encodes a utf16le string.
|
|
141
141
|
- `cenc.raw.utf16le`, `cenc.raw.ucs2` - Encodes a utf16le string without a length prefixed.
|
|
142
142
|
- `cenc.utf16le.fixed(n)`, `cenc.ucs2.fixed(n)` - Encodes a fixed size utf16le string.
|
|
143
|
+
- `cenc.fixed8` - Encodes a fixed 8 byte buffer.
|
|
144
|
+
- `cenc.fixed16` - Encodes a fixed 16 byte buffer.
|
|
145
|
+
- `cenc.fixed24` - Encodes a fixed 24 byte buffer.
|
|
143
146
|
- `cenc.fixed32` - Encodes a fixed 32 byte buffer.
|
|
144
147
|
- `cenc.fixed64` - Encodes a fixed 64 byte buffer.
|
|
145
148
|
- `cenc.fixed(n)` - Makes a fixed sized encoder.
|
package/index.d.ts
CHANGED
|
@@ -118,6 +118,9 @@ export const utf16le: StringEncoder<string>
|
|
|
118
118
|
export const bool: Encoder<boolean>
|
|
119
119
|
|
|
120
120
|
export function fixed(n: number): Encoder<Uint8Array>
|
|
121
|
+
export const fixed8: Encoder<Uint8Array>
|
|
122
|
+
export const fixed16: Encoder<Uint8Array>
|
|
123
|
+
export const fixed24: Encoder<Uint8Array>
|
|
121
124
|
export const fixed32: Encoder<Uint8Array>
|
|
122
125
|
export const fixed64: Encoder<Uint8Array>
|
|
123
126
|
|
package/index.js
CHANGED