@rbxts/types 1.0.869 → 1.0.870
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/include/roblox.d.ts +6 -0
- package/package.json +1 -1
package/include/roblox.d.ts
CHANGED
|
@@ -2888,6 +2888,9 @@ declare namespace buffer {
|
|
|
2888
2888
|
/** Returns the size of the buffer in bytes. */
|
|
2889
2889
|
function len(b: buffer): number;
|
|
2890
2890
|
|
|
2891
|
+
/** Reads a range of bits into an unsigned integer from the buffer based on a specific bitCount integer from 0 to 32, inclusive. */
|
|
2892
|
+
function readbits(b: buffer, bitOffset: number, bitCount: number): number;
|
|
2893
|
+
|
|
2891
2894
|
/** Reads an 8-bit signed integer from the buffer. */
|
|
2892
2895
|
function readi8(b: buffer, offset: number): number;
|
|
2893
2896
|
|
|
@@ -2915,6 +2918,9 @@ declare namespace buffer {
|
|
|
2915
2918
|
/** Writes an 8-bit signed integer to the buffer. */
|
|
2916
2919
|
function writei8(b: buffer, offset: number, value: number): void;
|
|
2917
2920
|
|
|
2921
|
+
/** Writes data to the buffer based on a specific bitCount integer from 0 to 32, inclusive. `value` is treated as an unsigned 32‑bit number and only bitCount least significant bits are written. */
|
|
2922
|
+
function writebits(b: buffer, bitOffset: number, bitCount: number, value: number): void;
|
|
2923
|
+
|
|
2918
2924
|
/** Writes an 8-bit unsigned integer to the buffer. */
|
|
2919
2925
|
function writeu8(b: buffer, offset: number, value: number): void;
|
|
2920
2926
|
|