Sha256: 1f75f5e164dc4fd127678441813eccafb1a5d8d08cc5efcbe7950c65a7f71c0c
Contents?: true
Size: 313 Bytes
Versions: 3
Compression:
Stored size: 313 Bytes
Contents
# frozen_string_literal: true require "cbor" module Wamp module Serializer # Add common API for serializer class Cbor def self.encode(message) CBOR.encode(message).unpack("c*") end def self.decode(message) CBOR.decode(message.pack("c*")) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
xconn-0.1.2 | lib/wamp/serializer/cbor.rb |
xconn-0.1.1 | lib/wamp/serializer/cbor.rb |
xconn-0.1.0 | lib/wamp/serializer/cbor.rb |