We have redirected you to our new domain: store.godotengine.org. Please update your bookmarks!

Description
Changelog
Reviews

This is encode/decode implementation of Concise Binary Object Representation for GDScript.

How to Use

Parse

You can use this like a JSON.parse in GDScript.

func _ready( ):
    var cbor: = GDCbor.new( )
    if cbor.parse( FileAccess.get_file_as_bytes( "path/to/data.cbor" ) ) != OK:
        printerr( cbor.error )
    else:
        print( cbor.data )

Binarify

You can use this like a JSON.stringify in GDScript.

func _ready( ):
    var cbor: = GDCbor.new( )
    print( cbor.binarify( [1, -2, 3, 3.1415926535, "aaa", {"test": "value"}, null, true, false] ) )

Changelog for version 1.0

No changelog provided for this version.

Reviews (0)

GD-CBOR has no reviews yet.

Login to write a review.