Sha256: f6df87060961ca7b434868cf2523117e34dfde93df3b327f9a998bf32bef2f9e
Contents?: true
Size: 225 Bytes
Versions: 10
Compression:
Stored size: 225 Bytes
Contents
# Encodes and decodes binary data. module BinarySerializer def self.encode(raw) return raw if raw.blank? raw.unpack("B*")[0] end def self.decode(raw) return raw if raw.blank? [raw].pack("B*") end end
Version data entries
10 entries across 10 versions & 1 rubygems