Class: WebPackage::CBOR
- Inherits:
-
Object
- Object
- WebPackage::CBOR
- Includes:
- Helpers
- Defined in:
- lib/web_package/cbor.rb
Overview
Concise Binary Object Representation tools.ietf.org/html/rfc7049
Constant Summary collapse
- MAJOR_TYPES_RANGE =
Major type 0: an unsigned integer. Major type 1: a negative integer. Major type 2: a byte string. Major type 3: a text string, Unicode characters that is encoded as UTF-8 [RFC3629]. Major type 4: an array of data items. Major type 5: a map of pairs of data items. Major type 6: optional semantic tagging of other major types. Major type 7: floating-point numbers and simple data types that need no content.
0..7
Instance Method Summary collapse
Instance Method Details
#generate(input) ⇒ Object
17 18 19 |
# File 'lib/web_package/cbor.rb', line 17 def generate(input) generate_bytes(input).pack('C*') end |