类 DEBUGGER__::UI_CDP::WebSocketUtils::Frame

属性

b[R]

公共类方法

new() 点击切换源代码
# File debug-1.10.0/lib/debug/server_cdp.rb, line 251
def initialize
  @b = ''.b
end

公共实例方法

<<(obj) 点击切换源代码
# File debug-1.10.0/lib/debug/server_cdp.rb, line 255
def << obj
  case obj
  when String
    @b << obj.b
  when Enumerable
    obj.each{|e| self << e}
  end
end
char(bytes) 点击切换源代码
# File debug-1.10.0/lib/debug/server_cdp.rb, line 264
def char bytes
  @b << bytes
end
uint16(bytes) 点击切换源代码
# File debug-1.10.0/lib/debug/server_cdp.rb, line 272
def uint16 bytes
  @b << [bytes].pack('n*')
end
ulonglong(bytes) 点击切换源代码
# File debug-1.10.0/lib/debug/server_cdp.rb, line 268
def ulonglong bytes
  @b << [bytes].pack('Q>')
end