Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support sized array and sized map. #23

Merged
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ public final class CBORConstants
*/

public final static int SUFFIX_INDEFINITE = 0x1F;
public final static int SUFFIX_UINT8_ELEMENTS = 0x18;
public final static int SUFFIX_UINT16_ELEMENTS = 0x19;
public final static int SUFFIX_UINT32_ELEMENTS = 0x1A;
public final static int SUFFIX_UINT64_ELEMENTS = 0x1B;

public final static int MASK_MAJOR_TYPE = 0xE0;

Expand All @@ -60,10 +64,10 @@ public final class CBORConstants
*/

public final static byte BYTE_ARRAY_INDEFINITE = (byte) (PREFIX_TYPE_ARRAY + SUFFIX_INDEFINITE);
public final static byte BYTE_OBJECT_INDEFINITE = (byte) (PREFIX_TYPE_OBJECT + SUFFIX_INDEFINITE);

// 2-element array commonly used (for big float, f.ex.)
public final static byte BYTE_ARRAY_2_ELEMENTS = (byte) (PREFIX_TYPE_ARRAY + 2);

public final static byte BYTE_OBJECT_INDEFINITE = (byte) (PREFIX_TYPE_OBJECT + SUFFIX_INDEFINITE);

public final static byte BYTE_FALSE = (byte) (PREFIX_TYPE_MISC + 20);
public final static byte BYTE_TRUE = (byte) (PREFIX_TYPE_MISC + 21);
Expand Down
Loading