123456789_123456789_123456789_123456789_123456789_

Class: DEBUGGER__::UI_CDP::WebSocketUtils::Frame

Relationships & Source Files
Inherits: Object
Defined in: lib/debug/server_cdp.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.newFrame

[ GitHub ]

  
# File 'lib/debug/server_cdp.rb', line 253

def initialize
  @b = ''.b
end

Instance Attribute Details

#b (readonly)

[ GitHub ]

  
# File 'lib/debug/server_cdp.rb', line 251

attr_reader :b

Instance Method Details

#<<(obj)

[ GitHub ]

  
# File 'lib/debug/server_cdp.rb', line 257

def << obj
  case obj
  when String
    @b << obj.b
  when Enumerable
    obj.each{|e| self << e}
  end
end

#char(bytes)

[ GitHub ]

  
# File 'lib/debug/server_cdp.rb', line 266

def char bytes
  @b << bytes
end

#uint16(bytes)

[ GitHub ]

  
# File 'lib/debug/server_cdp.rb', line 274

def uint16 bytes
  @b << [bytes].pack('n*')
end

#ulonglong(bytes)

[ GitHub ]

  
# File 'lib/debug/server_cdp.rb', line 270

def ulonglong bytes
  @b << [bytes].pack('Q>')
end