feat(README, filledDataView, sizedDataView)
This commit is contained in:
4
types/index.d.ts
vendored
4
types/index.d.ts
vendored
@ -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
3
types/mem.d.ts
vendored
@ -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)
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user