Sha256: a5303f838e01e57d22a06fc9fc6fb08617c3d1e5c3f09b68c15e880c01f4ada7
Contents?: true
Size: 445 Bytes
Versions: 23
Compression:
Stored size: 445 Bytes
Contents
module Beefcake class Buffer def initialize(buf='') if buf.respond_to?(:force_encoding) self.buf = buf.force_encoding('BINARY') else self.buf = buf end end def append_string(s) append_uint64(s.length) if s.respond_to?(:force_encoding) self << s.force_encoding('BINARY') else self << s end end alias :append_bytes :append_string end end
Version data entries
23 entries across 23 versions & 1 rubygems