first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
+29
View File
@@ -0,0 +1,29 @@
import { Reader } from '@jsonjoy.com/buffers/lib/Reader';
import type { AvroSchema } from './types';
export declare class AvroSchemaDecoder {
readonly reader: Reader;
private decoder;
private validator;
private namedSchemas;
constructor(reader?: Reader);
decode(data: Uint8Array, schema: AvroSchema): unknown;
private readValue;
private readRecord;
private readEnum;
private readArray;
private readMap;
private readUnion;
private readFixed;
readNull(schema: AvroSchema): null;
readBoolean(schema: AvroSchema): boolean;
readInt(schema: AvroSchema): number;
readLong(schema: AvroSchema): number | bigint;
readFloat(schema: AvroSchema): number;
readDouble(schema: AvroSchema): number;
readBytes(schema: AvroSchema): Uint8Array;
readString(schema: AvroSchema): string;
private validateSchemaType;
private resolveSchema;
private collectNamedSchemas;
private getFullName;
}