forked from Azure/azure-sdk-for-js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Lin Jian
committed
May 12, 2020
1 parent
0e88f7d
commit 05b293f
Showing
7 changed files
with
472 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
export const AvroConstants = { | ||
SYNC_MARKER_SIZE: 16, | ||
|
||
// 'O', 'b', 'j', 1 | ||
INIT_BYTES: new Uint8Array([79, 98, 106, 1]), | ||
|
||
CODEC_KEY: "avro.codec", | ||
|
||
SCHEMA_KEY: "avro.schema", | ||
|
||
NULL: "null", | ||
|
||
BOOLEAN: "boolean", | ||
|
||
INT: "int", | ||
|
||
LONG: "long", | ||
|
||
FLOAT: "float", | ||
|
||
DOUBLE: "double", | ||
|
||
BYTES: "bytes", | ||
|
||
STRING: "string", | ||
|
||
RECORD: "record", | ||
|
||
ENUM: "enum", | ||
|
||
MAP: "map", | ||
|
||
ARRAY: "array", | ||
|
||
UNION: "union", | ||
|
||
FIXED: "fixed", | ||
|
||
ALIASES: "aliases", | ||
|
||
NAME: "name", | ||
|
||
FIELDS: "fields", | ||
|
||
TYPE: "type", | ||
|
||
SYMBOLS: "symbols", | ||
|
||
VALUES: "values", | ||
}; |
Oops, something went wrong.