Sha256: 21b4907ee508999440b8e109890e585043c080da596e973830d2a4374f3bf584

Contents?: true

Size: 413 Bytes

Versions: 2

Compression:

Stored size: 413 Bytes

Contents

module StatsCloudIO
  module SocketIO
    module Client
      module Simple

        def self.as_byte_buffer(data)
          ByteBuffer.new(data)
        end

        class ByteBuffer
          attr_accessor :buffer

          def initialize(byte_array)
            return unless byte_array.is_a?(Array)
            @buffer = byte_array.unshift(4).pack('C*')
          end
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
statscloud.io-ruby-socket.io-client-simple-1.2.1.pre.3 lib/statscloud.io-ruby-socket.io-client-simple/byte_buffer.rb
statscloud.io-ruby-socket.io-client-simple-1.2.1.pre.2 lib/statscloud.io-ruby-socket.io-client-simple/byte_buffer.rb