refactor(struct): remove all DataView usage

This commit is contained in:
Simon Chan 2024-07-11 20:50:31 +08:00
parent 1d319929ed
commit 75ff6d0ed6
No known key found for this signature in database
GPG key ID: A8B69F750B9BCEDD
15 changed files with 62 additions and 115 deletions

View file

@ -65,11 +65,7 @@ export abstract class StructFieldValue<
}
/**
* When implemented in derived classes, serializes this field into `dataView` at `offset`
* When implemented in derived classes, serializes this field into `array` at `offset`
*/
abstract serialize(
dataView: DataView,
array: Uint8Array,
offset: number,
): void;
abstract serialize(array: Uint8Array, offset: number): void;
}