feat(README, filledDataView, sizedDataView)

This commit is contained in:
2025-08-08 12:32:55 +03:00
parent c5c0c17db2
commit c3e0e286a8
17 changed files with 322 additions and 30 deletions

4
types/index.d.ts vendored
View File

@ -1,4 +1,4 @@
import { memcpy } from './mem'
import { sizedDataView, filledDataView, memcpy } from './mem'
import { limits } from './limits'
import { Type } from './Type'
import { Int } from './Int'
@ -9,6 +9,8 @@ import { Sequence } from './Sequence'
import { Struct } from './Struct'
export {
sizedDataView,
filledDataView,
memcpy,
limits,
Type,

3
types/mem.d.ts vendored
View File

@ -1,3 +1,6 @@
export function sizedDataView(size: number): DataView
export function filledDataView(bytes: number[]): DataView
/**
* copies max possible number of bytes from src to dest (min of both sizes)
*/