File size: 1,032 Bytes
78c921d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
import * as flatbuffers from 'flatbuffers';
/**
 * ----------------------------------------------------------------------
 * A Buffer represents a single contiguous memory segment
 */
export declare class Buffer {
    bb: flatbuffers.ByteBuffer | null;
    bb_pos: number;
    __init(i: number, bb: flatbuffers.ByteBuffer): Buffer;
    /**
     * The relative offset into the shared memory page where the bytes for this
     * buffer starts
     */
    offset(): flatbuffers.Long;
    /**
     * The absolute length (in bytes) of the memory buffer. The memory is found
     * from offset (inclusive) to offset + length (non-inclusive). When building
     * messages using the encapsulated IPC message, padding bytes may be written
     * after a buffer, but such padding bytes do not need to be accounted for in
     * the size here.
     */
    length(): flatbuffers.Long;
    static sizeOf(): number;
    static createBuffer(builder: flatbuffers.Builder, offset: flatbuffers.Long, length: flatbuffers.Long): flatbuffers.Offset;
}