File: extensions.rbs

package info (click to toggle)
ruby-http-2 1.1.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 13,360 kB
  • sloc: ruby: 6,031; makefile: 4
file content (15 lines) | stat: -rw-r--r-- 390 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
module HTTP2
  module BufferUtils
    def append_str: (String str, String data) -> void

    def read_str: (String str, Integer n) -> String

    def read_uint32: (String str) -> Integer

    def shift_byte: (String str) -> Integer
  end

  module PackingExtensions
    def pack: (Array[Integer | String] array_to_pack, String template, buffer: String, ?offset: Integer) -> String
  end
end