module Aws::RpcV2::CborEngine
Pure Ruby implementation of CBOR encode and decode
Public Class Methods
Source
# File lib/aws-sdk-core/rpc_v2/cbor_engine.rb, line 13 def self.decode(bytes) Cbor::Decoder.new(bytes.force_encoding(Encoding::BINARY)).decode end
Source
# File lib/aws-sdk-core/rpc_v2/cbor_engine.rb, line 9 def self.encode(data) Cbor::Encoder.new.add(data).bytes end