utilium 0.4.0 → 0.4.1
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/dist/struct.js +1 -1
- package/package.json +1 -1
- package/src/struct.ts +1 -1
package/dist/struct.js
CHANGED
@@ -135,7 +135,7 @@ export function deserialize(instance, _buffer) {
|
|
135
135
|
if (object[key] === null || object[key] === undefined) {
|
136
136
|
continue;
|
137
137
|
}
|
138
|
-
deserialize(object[key], new Uint8Array(buffer.slice(iOff, sizeof(type))));
|
138
|
+
deserialize(object[key], new Uint8Array(buffer.slice(iOff, iOff + sizeof(type))));
|
139
139
|
continue;
|
140
140
|
}
|
141
141
|
if (length > 0) {
|
package/package.json
CHANGED
package/src/struct.ts
CHANGED
@@ -166,7 +166,7 @@ export function deserialize(instance: unknown, _buffer: ArrayBuffer | ArrayBuffe
|
|
166
166
|
if (object[key] === null || object[key] === undefined) {
|
167
167
|
continue;
|
168
168
|
}
|
169
|
-
deserialize(object[key], new Uint8Array(buffer.slice(iOff, sizeof(type))));
|
169
|
+
deserialize(object[key], new Uint8Array(buffer.slice(iOff, iOff + sizeof(type))));
|
170
170
|
continue;
|
171
171
|
}
|
172
172
|
|