Last change
on this file since 6a3a178 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
550 bytes
|
Line | |
---|
1 | /**
|
---|
2 | * Mimic Java's ByteBufffer with big endian order
|
---|
3 | */
|
---|
4 | declare class ByteBuffer {
|
---|
5 | position: number;
|
---|
6 | data: Uint8Array;
|
---|
7 | int32ArrayForConvert: Uint32Array;
|
---|
8 | int8ArrayForConvert: Uint8Array;
|
---|
9 | static allocate(size?: number): ByteBuffer;
|
---|
10 | constructor(data: Uint8Array);
|
---|
11 | put(value: number): void;
|
---|
12 | putInt32(value: number): void;
|
---|
13 | putInt64(value: number): void;
|
---|
14 | putArray(array: Uint8Array): void;
|
---|
15 | get(): number;
|
---|
16 | getInt32(): number;
|
---|
17 | getInt64(): number;
|
---|
18 | resetPosition(): void;
|
---|
19 | }
|
---|
20 | export default ByteBuffer;
|
---|
Note:
See
TracBrowser
for help on using the repository browser.