Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions src/format/flatbuffers/generated/array-manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,27 @@ export class ArrayManifest {
const offset = this.bb!.__offset(this.bb_pos, 6);
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
}

extra(index: number): number | null {
const offset = this.bb!.__offset(this.bb_pos, 8);
return offset
? this.bb!.readUint8(this.bb!.__vector(this.bb_pos + offset) + index)
: 0;
}

extraLength(): number {
const offset = this.bb!.__offset(this.bb_pos, 8);
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
}

extraArray(): Uint8Array | null {
const offset = this.bb!.__offset(this.bb_pos, 8);
return offset
? new Uint8Array(
this.bb!.bytes().buffer,
this.bb!.bytes().byteOffset + this.bb!.__vector(this.bb_pos + offset),
this.bb!.__vector_len(this.bb_pos + offset),
)
: null;
}
}
18 changes: 18 additions & 0 deletions src/format/flatbuffers/generated/array-node-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import * as flatbuffers from "flatbuffers";

import { DimensionName } from "../generated/dimension-name.js";
import { DimensionShape } from "../generated/dimension-shape.js";
import { DimensionShapeV2 } from "../generated/dimension-shape-v2.js";
import { ManifestRef } from "../generated/manifest-ref.js";

export class ArrayNodeData {
Expand Down Expand Up @@ -73,4 +74,21 @@ export class ArrayNodeData {
const offset = this.bb!.__offset(this.bb_pos, 8);
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
}

shapeV2(index: number, obj?: DimensionShapeV2): DimensionShapeV2 | null {
const offset = this.bb!.__offset(this.bb_pos, 10);
return offset
? (obj || new DimensionShapeV2()).__init(
this.bb!.__indirect(
this.bb!.__vector(this.bb_pos + offset) + index * 4,
),
this.bb!,
)
: null;
}

shapeV2Length(): number {
const offset = this.bb!.__offset(this.bb_pos, 10);
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
}
}
46 changes: 46 additions & 0 deletions src/format/flatbuffers/generated/chunk-ref.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,4 +110,50 @@ export class ChunkRef {
const offset = this.bb!.__offset(this.bb_pos, 18);
return offset ? this.bb!.readUint32(this.bb_pos + offset) : 0;
}

compressedLocation(index: number): number | null {
const offset = this.bb!.__offset(this.bb_pos, 20);
return offset
? this.bb!.readUint8(this.bb!.__vector(this.bb_pos + offset) + index)
: 0;
}

compressedLocationLength(): number {
const offset = this.bb!.__offset(this.bb_pos, 20);
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
}

compressedLocationArray(): Uint8Array | null {
const offset = this.bb!.__offset(this.bb_pos, 20);
return offset
? new Uint8Array(
this.bb!.bytes().buffer,
this.bb!.bytes().byteOffset + this.bb!.__vector(this.bb_pos + offset),
this.bb!.__vector_len(this.bb_pos + offset),
)
: null;
}

extra(index: number): number | null {
const offset = this.bb!.__offset(this.bb_pos, 22);
return offset
? this.bb!.readUint8(this.bb!.__vector(this.bb_pos + offset) + index)
: 0;
}

extraLength(): number {
const offset = this.bb!.__offset(this.bb_pos, 22);
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
}

extraArray(): Uint8Array | null {
const offset = this.bb!.__offset(this.bb_pos, 22);
return offset
? new Uint8Array(
this.bb!.bytes().buffer,
this.bb!.bytes().byteOffset + this.bb!.__vector(this.bb_pos + offset),
this.bb!.__vector_len(this.bb_pos + offset),
)
: null;
}
}
33 changes: 33 additions & 0 deletions src/format/flatbuffers/generated/dimension-shape-v2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// automatically generated by the FlatBuffers compiler, do not modify

import * as flatbuffers from "flatbuffers";

export class DimensionShapeV2 {
bb: flatbuffers.ByteBuffer | null = null;
bb_pos = 0;
__init(i: number, bb: flatbuffers.ByteBuffer): DimensionShapeV2 {
this.bb_pos = i;
this.bb = bb;
return this;
}

static getRootAsDimensionShapeV2(
bb: flatbuffers.ByteBuffer,
obj?: DimensionShapeV2,
): DimensionShapeV2 {
return (obj || new DimensionShapeV2()).__init(
bb.readInt32(bb.position()) + bb.position(),
bb,
);
}

arrayLength(): bigint {
const offset = this.bb!.__offset(this.bb_pos, 4);
return offset ? this.bb!.readUint64(this.bb_pos + offset) : BigInt("0");
}

numChunks(): number {
const offset = this.bb!.__offset(this.bb_pos, 6);
return offset ? this.bb!.readUint32(this.bb_pos + offset) : 0;
}
}
38 changes: 38 additions & 0 deletions src/format/flatbuffers/generated/feature-flag-changed-update.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
// automatically generated by the FlatBuffers compiler, do not modify

import * as flatbuffers from "flatbuffers";

export class FeatureFlagChangedUpdate {
bb: flatbuffers.ByteBuffer | null = null;
bb_pos = 0;
__init(i: number, bb: flatbuffers.ByteBuffer): FeatureFlagChangedUpdate {
this.bb_pos = i;
this.bb = bb;
return this;
}

static getRootAsFeatureFlagChangedUpdate(
bb: flatbuffers.ByteBuffer,
obj?: FeatureFlagChangedUpdate,
): FeatureFlagChangedUpdate {
return (obj || new FeatureFlagChangedUpdate()).__init(
bb.readInt32(bb.position()) + bb.position(),
bb,
);
}

id(): number {
const offset = this.bb!.__offset(this.bb_pos, 4);
return offset ? this.bb!.readUint16(this.bb_pos + offset) : 0;
}

newValue(): boolean {
const offset = this.bb!.__offset(this.bb_pos, 6);
return offset ? !!this.bb!.readInt8(this.bb_pos + offset) : false;
}

isSet(): boolean {
const offset = this.bb!.__offset(this.bb_pos, 8);
return offset ? !!this.bb!.readInt8(this.bb_pos + offset) : false;
}
}
65 changes: 65 additions & 0 deletions src/format/flatbuffers/generated/manifest-file-info-v2.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
// automatically generated by the FlatBuffers compiler, do not modify

import * as flatbuffers from "flatbuffers";

import { ObjectId12 } from "../generated/object-id12.js";

export class ManifestFileInfoV2 {
bb: flatbuffers.ByteBuffer | null = null;
bb_pos = 0;
__init(i: number, bb: flatbuffers.ByteBuffer): ManifestFileInfoV2 {
this.bb_pos = i;
this.bb = bb;
return this;
}

static getRootAsManifestFileInfoV2(
bb: flatbuffers.ByteBuffer,
obj?: ManifestFileInfoV2,
): ManifestFileInfoV2 {
return (obj || new ManifestFileInfoV2()).__init(
bb.readInt32(bb.position()) + bb.position(),
bb,
);
}

id(obj?: ObjectId12): ObjectId12 | null {
const offset = this.bb!.__offset(this.bb_pos, 4);
return offset
? (obj || new ObjectId12()).__init(this.bb_pos + offset, this.bb!)
: null;
}

sizeBytes(): bigint {
const offset = this.bb!.__offset(this.bb_pos, 6);
return offset ? this.bb!.readUint64(this.bb_pos + offset) : BigInt("0");
}

numChunkRefs(): number {
const offset = this.bb!.__offset(this.bb_pos, 8);
return offset ? this.bb!.readUint32(this.bb_pos + offset) : 0;
}

extra(index: number): number | null {
const offset = this.bb!.__offset(this.bb_pos, 10);
return offset
? this.bb!.readUint8(this.bb!.__vector(this.bb_pos + offset) + index)
: 0;
}

extraLength(): number {
const offset = this.bb!.__offset(this.bb_pos, 10);
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
}

extraArray(): Uint8Array | null {
const offset = this.bb!.__offset(this.bb_pos, 10);
return offset
? new Uint8Array(
this.bb!.bytes().buffer,
this.bb!.bytes().byteOffset + this.bb!.__vector(this.bb_pos + offset),
this.bb!.__vector_len(this.bb_pos + offset),
)
: null;
}
}
51 changes: 51 additions & 0 deletions src/format/flatbuffers/generated/manifest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,4 +47,55 @@ export class Manifest {
const offset = this.bb!.__offset(this.bb_pos, 6);
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
}

locationDictionary(index: number): number | null {
const offset = this.bb!.__offset(this.bb_pos, 8);
return offset
? this.bb!.readUint8(this.bb!.__vector(this.bb_pos + offset) + index)
: 0;
}

locationDictionaryLength(): number {
const offset = this.bb!.__offset(this.bb_pos, 8);
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
}

locationDictionaryArray(): Uint8Array | null {
const offset = this.bb!.__offset(this.bb_pos, 8);
return offset
? new Uint8Array(
this.bb!.bytes().buffer,
this.bb!.bytes().byteOffset + this.bb!.__vector(this.bb_pos + offset),
this.bb!.__vector_len(this.bb_pos + offset),
)
: null;
}

compressionAlgorithm(): number {
const offset = this.bb!.__offset(this.bb_pos, 10);
return offset ? this.bb!.readUint8(this.bb_pos + offset) : 1;
}

extra(index: number): number | null {
const offset = this.bb!.__offset(this.bb_pos, 12);
return offset
? this.bb!.readUint8(this.bb!.__vector(this.bb_pos + offset) + index)
: 0;
}

extraLength(): number {
const offset = this.bb!.__offset(this.bb_pos, 12);
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
}

extraArray(): Uint8Array | null {
const offset = this.bb!.__offset(this.bb_pos, 12);
return offset
? new Uint8Array(
this.bb!.bytes().buffer,
this.bb!.bytes().byteOffset + this.bb!.__vector(this.bb_pos + offset),
this.bb!.__vector_len(this.bb_pos + offset),
)
: null;
}
}
23 changes: 23 additions & 0 deletions src/format/flatbuffers/generated/node-snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,27 @@ export class NodeSnapshot {
const offset = this.bb!.__offset(this.bb_pos, 12);
return offset ? this.bb!.__union(obj, this.bb_pos + offset) : null;
}

extra(index: number): number | null {
const offset = this.bb!.__offset(this.bb_pos, 14);
return offset
? this.bb!.readUint8(this.bb!.__vector(this.bb_pos + offset) + index)
: 0;
}

extraLength(): number {
const offset = this.bb!.__offset(this.bb_pos, 14);
return offset ? this.bb!.__vector_len(this.bb_pos + offset) : 0;
}

extraArray(): Uint8Array | null {
const offset = this.bb!.__offset(this.bb_pos, 14);
return offset
? new Uint8Array(
this.bb!.bytes().buffer,
this.bb!.bytes().byteOffset + this.bb!.__vector(this.bb_pos + offset),
this.bb!.__vector_len(this.bb_pos + offset),
)
: null;
}
}
35 changes: 35 additions & 0 deletions src/format/flatbuffers/generated/repo-status-changed-update.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
// automatically generated by the FlatBuffers compiler, do not modify

import * as flatbuffers from "flatbuffers";

import { RepoStatus } from "../generated/repo-status.js";

export class RepoStatusChangedUpdate {
bb: flatbuffers.ByteBuffer | null = null;
bb_pos = 0;
__init(i: number, bb: flatbuffers.ByteBuffer): RepoStatusChangedUpdate {
this.bb_pos = i;
this.bb = bb;
return this;
}

static getRootAsRepoStatusChangedUpdate(
bb: flatbuffers.ByteBuffer,
obj?: RepoStatusChangedUpdate,
): RepoStatusChangedUpdate {
return (obj || new RepoStatusChangedUpdate()).__init(
bb.readInt32(bb.position()) + bb.position(),
bb,
);
}

status(obj?: RepoStatus): RepoStatus | null {
const offset = this.bb!.__offset(this.bb_pos, 4);
return offset
? (obj || new RepoStatus()).__init(
this.bb!.__indirect(this.bb_pos + offset),
this.bb!,
)
: null;
}
}
Loading
Loading