class DEBUGGER__::UI_CDP::WebSocketUtils::Frame

Attributes

b[R]

Public Class Methods

new() click to toggle source
# File debug-1.9.1/lib/debug/server_cdp.rb, line 252
def initialize
  @b = ''.b
end

Public Instance Methods

<<(obj) click to toggle source
# File debug-1.9.1/lib/debug/server_cdp.rb, line 256
def << obj
  case obj
  when String
    @b << obj.b
  when Enumerable
    obj.each{|e| self << e}
  end
end
char(bytes) click to toggle source
# File debug-1.9.1/lib/debug/server_cdp.rb, line 265
def char bytes
  @b << bytes
end
uint16(bytes) click to toggle source
# File debug-1.9.1/lib/debug/server_cdp.rb, line 273
def uint16 bytes
  @b << [bytes].pack('n*')
end
ulonglong(bytes) click to toggle source
# File debug-1.9.1/lib/debug/server_cdp.rb, line 269
def ulonglong bytes
  @b << [bytes].pack('Q>')
end