We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a7abdfa commit 6c6b4e9Copy full SHA for 6c6b4e9
1 file changed
core.ts
@@ -33,7 +33,7 @@ export function structDataView(struct: AnyStruct): DataView {
33
* @param end byte offset of the end of the subrange
34
* @returns region of the given struct.
35
*/
36
-export function structBytes(struct: AnyStruct, start?: number, end?: number) {
+export function structBytes(struct: AnyStruct, start?: number, end?: number): Uint8Array {
37
const dv = structDataView(struct)
38
start ??= 0
39
end ??= dv.byteLength
0 commit comments