Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be 📖

GD-CBOR

An asset by arlez80
The page banner background of a mountain and forest
GD-CBOR hero image

Quick Information

0 ratings
GD-CBOR icon image
arlez80
GD-CBOR

encode/decode implementation of Concise Binary Object Representation for Godot Engine 4.x / GDScript.

Supported Engine Version
4.4
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
29 days ago
Git URL
Issue URL

GD-CBOR

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

README ko-fi

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:
        print( cbor.error )

    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] ) )

License

MIT License

Author

あるる / きのもと 結衣 @arlez80

encode/decode implementation of Concise Binary Object Representation for Godot Engine 4.x / GDScript.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
GD-CBOR icon image
arlez80
GD-CBOR

encode/decode implementation of Concise Binary Object Representation for Godot Engine 4.x / GDScript.

Supported Engine Version
4.4
Version String
1.0
License Version
MIT
Support Level
community
Modified Date
29 days ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers