bungie_sdk 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +14 -0
  3. data/.rspec +3 -0
  4. data/.rubocop.yml +147 -0
  5. data/.solargraph.yml +23 -0
  6. data/.travis.yml +6 -0
  7. data/.vim/coc-settings.json +12 -0
  8. data/CODE_OF_CONDUCT.md +74 -0
  9. data/Gemfile +19 -0
  10. data/Gemfile.lock +133 -0
  11. data/LICENSE.txt +21 -0
  12. data/README.md +56 -0
  13. data/Rakefile +6 -0
  14. data/bin/console +15 -0
  15. data/bin/setup +8 -0
  16. data/bin/tapioca +29 -0
  17. data/bungie_sdk.gemspec +35 -0
  18. data/lib/bungie_sdk/agent.rb +166 -0
  19. data/lib/bungie_sdk/character.rb +82 -0
  20. data/lib/bungie_sdk/client.rb +72 -0
  21. data/lib/bungie_sdk/item.rb +83 -0
  22. data/lib/bungie_sdk/membership.rb +30 -0
  23. data/lib/bungie_sdk/profile.rb +36 -0
  24. data/lib/bungie_sdk/token_manager.rb +136 -0
  25. data/lib/bungie_sdk/vendor.rb +64 -0
  26. data/lib/bungie_sdk/version.rb +4 -0
  27. data/lib/bungie_sdk.rb +104 -0
  28. data/sorbet/config +3 -0
  29. data/sorbet/rbi/gems/addressable.rbi +151 -0
  30. data/sorbet/rbi/gems/addressable@2.8.0.rbi +224 -0
  31. data/sorbet/rbi/gems/ast@2.4.2.rbi +54 -0
  32. data/sorbet/rbi/gems/bungie_sdk.rbi +15 -0
  33. data/sorbet/rbi/gems/coderay.rbi +285 -0
  34. data/sorbet/rbi/gems/coderay@1.1.3.rbi +1005 -0
  35. data/sorbet/rbi/gems/diff-lcs@1.5.0.rbi +185 -0
  36. data/sorbet/rbi/gems/dotenv.rbi +68 -0
  37. data/sorbet/rbi/gems/dotenv@2.7.6.rbi +88 -0
  38. data/sorbet/rbi/gems/ethon.rbi +716 -0
  39. data/sorbet/rbi/gems/ethon@0.15.0.rbi +883 -0
  40. data/sorbet/rbi/gems/faraday-net_http.rbi +33 -0
  41. data/sorbet/rbi/gems/faraday-net_http@2.0.1.rbi +78 -0
  42. data/sorbet/rbi/gems/faraday.rbi +696 -0
  43. data/sorbet/rbi/gems/faraday@2.2.0.rbi +685 -0
  44. data/sorbet/rbi/gems/ffi.rbi +560 -0
  45. data/sorbet/rbi/gems/ffi@1.15.5.rbi +849 -0
  46. data/sorbet/rbi/gems/gem-release.rbi +582 -0
  47. data/sorbet/rbi/gems/gem-release@2.2.2.rbi +644 -0
  48. data/sorbet/rbi/gems/hashie.rbi +160 -0
  49. data/sorbet/rbi/gems/jwt.rbi +274 -0
  50. data/sorbet/rbi/gems/jwt@2.3.0.rbi +437 -0
  51. data/sorbet/rbi/gems/launchy.rbi +226 -0
  52. data/sorbet/rbi/gems/launchy@2.5.0.rbi +327 -0
  53. data/sorbet/rbi/gems/method_source.rbi +64 -0
  54. data/sorbet/rbi/gems/method_source@1.0.0.rbi +72 -0
  55. data/sorbet/rbi/gems/multi_json.rbi +62 -0
  56. data/sorbet/rbi/gems/multi_json@1.15.0.rbi +96 -0
  57. data/sorbet/rbi/gems/multi_xml.rbi +35 -0
  58. data/sorbet/rbi/gems/multi_xml@0.6.0.rbi +36 -0
  59. data/sorbet/rbi/gems/oauth2.rbi +143 -0
  60. data/sorbet/rbi/gems/oauth2@1.4.9.rbi +181 -0
  61. data/sorbet/rbi/gems/parallel@1.22.1.rbi +8 -0
  62. data/sorbet/rbi/gems/parser@3.1.1.0.rbi +1196 -0
  63. data/sorbet/rbi/gems/pry.rbi +1898 -0
  64. data/sorbet/rbi/gems/pry@0.14.1.rbi +2486 -0
  65. data/sorbet/rbi/gems/public_suffix.rbi +104 -0
  66. data/sorbet/rbi/gems/public_suffix@4.0.6.rbi +145 -0
  67. data/sorbet/rbi/gems/rack.rbi +21 -0
  68. data/sorbet/rbi/gems/rack@2.2.3.rbi +1622 -0
  69. data/sorbet/rbi/gems/rainbow@3.1.1.rbi +8 -0
  70. data/sorbet/rbi/gems/rake.rbi +644 -0
  71. data/sorbet/rbi/gems/rake@12.3.3.rbi +804 -0
  72. data/sorbet/rbi/gems/rbi@0.0.14.rbi +2073 -0
  73. data/sorbet/rbi/gems/regexp_parser@2.3.0.rbi +8 -0
  74. data/sorbet/rbi/gems/rexml@3.2.5.rbi +672 -0
  75. data/sorbet/rbi/gems/rspec-core.rbi +1898 -0
  76. data/sorbet/rbi/gems/rspec-core@3.11.0.rbi +2468 -0
  77. data/sorbet/rbi/gems/rspec-expectations.rbi +1171 -0
  78. data/sorbet/rbi/gems/rspec-expectations@3.11.0.rbi +1634 -0
  79. data/sorbet/rbi/gems/rspec-mocks.rbi +1094 -0
  80. data/sorbet/rbi/gems/rspec-mocks@3.11.1.rbi +1497 -0
  81. data/sorbet/rbi/gems/rspec-support.rbi +280 -0
  82. data/sorbet/rbi/gems/rspec-support@3.11.0.rbi +511 -0
  83. data/sorbet/rbi/gems/rspec.rbi +15 -0
  84. data/sorbet/rbi/gems/rspec@3.11.0.rbi +40 -0
  85. data/sorbet/rbi/gems/rubocop-ast@1.17.0.rbi +8 -0
  86. data/sorbet/rbi/gems/rubocop-sorbet@0.6.7.rbi +8 -0
  87. data/sorbet/rbi/gems/rubocop@1.27.0.rbi +8 -0
  88. data/sorbet/rbi/gems/ruby-progressbar@1.11.0.rbi +8 -0
  89. data/sorbet/rbi/gems/ruby2_keywords@0.0.5.rbi +8 -0
  90. data/sorbet/rbi/gems/spoom@1.1.11.rbi +1445 -0
  91. data/sorbet/rbi/gems/tapioca@0.7.1.rbi +1677 -0
  92. data/sorbet/rbi/gems/thor@1.2.1.rbi +844 -0
  93. data/sorbet/rbi/gems/typhoeus.rbi +301 -0
  94. data/sorbet/rbi/gems/typhoeus@1.4.0.rbi +450 -0
  95. data/sorbet/rbi/gems/unicode-display_width@2.1.0.rbi +8 -0
  96. data/sorbet/rbi/gems/unparser@0.6.4.rbi +8 -0
  97. data/sorbet/rbi/gems/webrick@1.7.0.rbi +601 -0
  98. data/sorbet/rbi/gems/yard-sorbet@0.6.1.rbi +235 -0
  99. data/sorbet/rbi/gems/yard@0.9.27.rbi +3966 -0
  100. data/sorbet/rbi/hidden-definitions/errors.txt +4013 -0
  101. data/sorbet/rbi/hidden-definitions/hidden.rbi +8945 -0
  102. data/sorbet/rbi/sorbet-typed/lib/faraday/all/faraday.rbi +82 -0
  103. data/sorbet/rbi/sorbet-typed/lib/rake/all/rake.rbi +645 -0
  104. data/sorbet/rbi/sorbet-typed/lib/rspec-core/all/rspec-core.rbi +24 -0
  105. data/sorbet/rbi/todo.rbi +8 -0
  106. data/sorbet/tapioca/config.yml +13 -0
  107. data/sorbet/tapioca/require.rb +4 -0
  108. metadata +236 -0
@@ -0,0 +1,849 @@
1
+ # typed: true
2
+
3
+ # DO NOT EDIT MANUALLY
4
+ # This is an autogenerated file for types exported from the `ffi` gem.
5
+ # Please instead update this file by running `bin/tapioca gem ffi`.
6
+
7
+ module FFI
8
+ class << self
9
+ def add_typedef(old, add); end
10
+ def errno; end
11
+ def errno=(error); end
12
+ def find_type(name, type_map = T.unsafe(nil)); end
13
+ def map_library_name(lib); end
14
+ def type_size(type); end
15
+ def typedef(old, add); end
16
+ end
17
+ end
18
+
19
+ class FFI::AbstractMemory
20
+ def [](_arg0); end
21
+ def __copy_from__(_arg0, _arg1); end
22
+ def clear; end
23
+ def get(_arg0, _arg1); end
24
+ def get_array_of_char(_arg0, _arg1); end
25
+ def get_array_of_double(_arg0, _arg1); end
26
+ def get_array_of_float(_arg0, _arg1); end
27
+ def get_array_of_float32(_arg0, _arg1); end
28
+ def get_array_of_float64(_arg0, _arg1); end
29
+ def get_array_of_int(_arg0, _arg1); end
30
+ def get_array_of_int16(_arg0, _arg1); end
31
+ def get_array_of_int32(_arg0, _arg1); end
32
+ def get_array_of_int64(_arg0, _arg1); end
33
+ def get_array_of_int8(_arg0, _arg1); end
34
+ def get_array_of_long(_arg0, _arg1); end
35
+ def get_array_of_long_long(_arg0, _arg1); end
36
+ def get_array_of_pointer(_arg0, _arg1); end
37
+ def get_array_of_short(_arg0, _arg1); end
38
+ def get_array_of_string(*_arg0); end
39
+ def get_array_of_uchar(_arg0, _arg1); end
40
+ def get_array_of_uint(_arg0, _arg1); end
41
+ def get_array_of_uint16(_arg0, _arg1); end
42
+ def get_array_of_uint32(_arg0, _arg1); end
43
+ def get_array_of_uint64(_arg0, _arg1); end
44
+ def get_array_of_uint8(_arg0, _arg1); end
45
+ def get_array_of_ulong(_arg0, _arg1); end
46
+ def get_array_of_ulong_long(_arg0, _arg1); end
47
+ def get_array_of_ushort(_arg0, _arg1); end
48
+ def get_bytes(_arg0, _arg1); end
49
+ def get_char(_arg0); end
50
+ def get_double(_arg0); end
51
+ def get_float(_arg0); end
52
+ def get_float32(_arg0); end
53
+ def get_float64(_arg0); end
54
+ def get_int(_arg0); end
55
+ def get_int16(_arg0); end
56
+ def get_int32(_arg0); end
57
+ def get_int64(_arg0); end
58
+ def get_int8(_arg0); end
59
+ def get_long(_arg0); end
60
+ def get_long_long(_arg0); end
61
+ def get_pointer(_arg0); end
62
+ def get_short(_arg0); end
63
+ def get_string(*_arg0); end
64
+ def get_uchar(_arg0); end
65
+ def get_uint(_arg0); end
66
+ def get_uint16(_arg0); end
67
+ def get_uint32(_arg0); end
68
+ def get_uint64(_arg0); end
69
+ def get_uint8(_arg0); end
70
+ def get_ulong(_arg0); end
71
+ def get_ulong_long(_arg0); end
72
+ def get_ushort(_arg0); end
73
+ def put(_arg0, _arg1, _arg2); end
74
+ def put_array_of_char(_arg0, _arg1); end
75
+ def put_array_of_double(_arg0, _arg1); end
76
+ def put_array_of_float(_arg0, _arg1); end
77
+ def put_array_of_float32(_arg0, _arg1); end
78
+ def put_array_of_float64(_arg0, _arg1); end
79
+ def put_array_of_int(_arg0, _arg1); end
80
+ def put_array_of_int16(_arg0, _arg1); end
81
+ def put_array_of_int32(_arg0, _arg1); end
82
+ def put_array_of_int64(_arg0, _arg1); end
83
+ def put_array_of_int8(_arg0, _arg1); end
84
+ def put_array_of_long(_arg0, _arg1); end
85
+ def put_array_of_long_long(_arg0, _arg1); end
86
+ def put_array_of_pointer(_arg0, _arg1); end
87
+ def put_array_of_short(_arg0, _arg1); end
88
+ def put_array_of_uchar(_arg0, _arg1); end
89
+ def put_array_of_uint(_arg0, _arg1); end
90
+ def put_array_of_uint16(_arg0, _arg1); end
91
+ def put_array_of_uint32(_arg0, _arg1); end
92
+ def put_array_of_uint64(_arg0, _arg1); end
93
+ def put_array_of_uint8(_arg0, _arg1); end
94
+ def put_array_of_ulong(_arg0, _arg1); end
95
+ def put_array_of_ulong_long(_arg0, _arg1); end
96
+ def put_array_of_ushort(_arg0, _arg1); end
97
+ def put_bytes(*_arg0); end
98
+ def put_char(_arg0, _arg1); end
99
+ def put_double(_arg0, _arg1); end
100
+ def put_float(_arg0, _arg1); end
101
+ def put_float32(_arg0, _arg1); end
102
+ def put_float64(_arg0, _arg1); end
103
+ def put_int(_arg0, _arg1); end
104
+ def put_int16(_arg0, _arg1); end
105
+ def put_int32(_arg0, _arg1); end
106
+ def put_int64(_arg0, _arg1); end
107
+ def put_int8(_arg0, _arg1); end
108
+ def put_long(_arg0, _arg1); end
109
+ def put_long_long(_arg0, _arg1); end
110
+ def put_pointer(_arg0, _arg1); end
111
+ def put_short(_arg0, _arg1); end
112
+ def put_string(_arg0, _arg1); end
113
+ def put_uchar(_arg0, _arg1); end
114
+ def put_uint(_arg0, _arg1); end
115
+ def put_uint16(_arg0, _arg1); end
116
+ def put_uint32(_arg0, _arg1); end
117
+ def put_uint64(_arg0, _arg1); end
118
+ def put_uint8(_arg0, _arg1); end
119
+ def put_ulong(_arg0, _arg1); end
120
+ def put_ulong_long(_arg0, _arg1); end
121
+ def put_ushort(_arg0, _arg1); end
122
+ def read_array_of_char(_arg0); end
123
+ def read_array_of_double(_arg0); end
124
+ def read_array_of_float(_arg0); end
125
+ def read_array_of_int(_arg0); end
126
+ def read_array_of_int16(_arg0); end
127
+ def read_array_of_int32(_arg0); end
128
+ def read_array_of_int64(_arg0); end
129
+ def read_array_of_int8(_arg0); end
130
+ def read_array_of_long(_arg0); end
131
+ def read_array_of_long_long(_arg0); end
132
+ def read_array_of_pointer(_arg0); end
133
+ def read_array_of_short(_arg0); end
134
+ def read_array_of_uchar(_arg0); end
135
+ def read_array_of_uint(_arg0); end
136
+ def read_array_of_uint16(_arg0); end
137
+ def read_array_of_uint32(_arg0); end
138
+ def read_array_of_uint64(_arg0); end
139
+ def read_array_of_uint8(_arg0); end
140
+ def read_array_of_ulong(_arg0); end
141
+ def read_array_of_ulong_long(_arg0); end
142
+ def read_array_of_ushort(_arg0); end
143
+ def read_bytes(_arg0); end
144
+ def read_char; end
145
+ def read_double; end
146
+ def read_float; end
147
+ def read_int; end
148
+ def read_int16; end
149
+ def read_int32; end
150
+ def read_int64; end
151
+ def read_int8; end
152
+ def read_long; end
153
+ def read_long_long; end
154
+ def read_pointer; end
155
+ def read_short; end
156
+ def read_uchar; end
157
+ def read_uint; end
158
+ def read_uint16; end
159
+ def read_uint32; end
160
+ def read_uint64; end
161
+ def read_uint8; end
162
+ def read_ulong; end
163
+ def read_ulong_long; end
164
+ def read_ushort; end
165
+ def size; end
166
+ def size_limit?; end
167
+ def total; end
168
+ def type_size; end
169
+ def write_array_of_char(_arg0); end
170
+ def write_array_of_double(_arg0); end
171
+ def write_array_of_float(_arg0); end
172
+ def write_array_of_int(_arg0); end
173
+ def write_array_of_int16(_arg0); end
174
+ def write_array_of_int32(_arg0); end
175
+ def write_array_of_int64(_arg0); end
176
+ def write_array_of_int8(_arg0); end
177
+ def write_array_of_long(_arg0); end
178
+ def write_array_of_long_long(_arg0); end
179
+ def write_array_of_pointer(_arg0); end
180
+ def write_array_of_short(_arg0); end
181
+ def write_array_of_uchar(_arg0); end
182
+ def write_array_of_uint(_arg0); end
183
+ def write_array_of_uint16(_arg0); end
184
+ def write_array_of_uint32(_arg0); end
185
+ def write_array_of_uint64(_arg0); end
186
+ def write_array_of_uint8(_arg0); end
187
+ def write_array_of_ulong(_arg0); end
188
+ def write_array_of_ulong_long(_arg0); end
189
+ def write_array_of_ushort(_arg0); end
190
+ def write_bytes(*_arg0); end
191
+ def write_char(_arg0); end
192
+ def write_double(_arg0); end
193
+ def write_float(_arg0); end
194
+ def write_int(_arg0); end
195
+ def write_int16(_arg0); end
196
+ def write_int32(_arg0); end
197
+ def write_int64(_arg0); end
198
+ def write_int8(_arg0); end
199
+ def write_long(_arg0); end
200
+ def write_long_long(_arg0); end
201
+ def write_pointer(_arg0); end
202
+ def write_short(_arg0); end
203
+ def write_uchar(_arg0); end
204
+ def write_uint(_arg0); end
205
+ def write_uint16(_arg0); end
206
+ def write_uint32(_arg0); end
207
+ def write_uint64(_arg0); end
208
+ def write_uint8(_arg0); end
209
+ def write_ulong(_arg0); end
210
+ def write_ulong_long(_arg0); end
211
+ def write_ushort(_arg0); end
212
+ end
213
+
214
+ FFI::AbstractMemory::LONG_MAX = T.let(T.unsafe(nil), Integer)
215
+
216
+ class FFI::ArrayType < ::FFI::Type
217
+ def initialize(_arg0, _arg1); end
218
+
219
+ def elem_type; end
220
+ def length; end
221
+ end
222
+
223
+ class FFI::AutoPointer < ::FFI::Pointer
224
+ extend ::FFI::DataConverter
225
+
226
+ def initialize(ptr, proc = T.unsafe(nil), &block); end
227
+
228
+ def autorelease=(autorelease); end
229
+ def autorelease?; end
230
+ def free; end
231
+
232
+ class << self
233
+ def from_native(val, ctx); end
234
+ def native_type; end
235
+ end
236
+ end
237
+
238
+ class FFI::AutoPointer::CallableReleaser < ::FFI::AutoPointer::Releaser
239
+ def release(ptr); end
240
+ end
241
+
242
+ class FFI::AutoPointer::DefaultReleaser < ::FFI::AutoPointer::Releaser
243
+ def release(ptr); end
244
+ end
245
+
246
+ class FFI::AutoPointer::Releaser
247
+ def initialize(ptr, proc); end
248
+
249
+ def autorelease; end
250
+ def autorelease=(_arg0); end
251
+ def call(*args); end
252
+ def free; end
253
+ end
254
+
255
+ class FFI::Bitmask < ::FFI::Enum
256
+ def initialize(*args); end
257
+
258
+ def [](*query); end
259
+ def from_native(val, ctx); end
260
+ def to_native(query, ctx); end
261
+ end
262
+
263
+ class FFI::Buffer < ::FFI::AbstractMemory
264
+ def initialize(*_arg0); end
265
+
266
+ def +(_arg0); end
267
+ def inspect; end
268
+ def length; end
269
+ def order(*_arg0); end
270
+ def slice(_arg0, _arg1); end
271
+
272
+ private
273
+
274
+ def initialize_copy(_arg0); end
275
+
276
+ class << self
277
+ def alloc_in(*_arg0); end
278
+ def alloc_inout(*_arg0); end
279
+ def alloc_out(*_arg0); end
280
+ def new_in(*_arg0); end
281
+ def new_inout(*_arg0); end
282
+ def new_out(*_arg0); end
283
+ end
284
+ end
285
+
286
+ FFI::CURRENT_PROCESS = T.let(T.unsafe(nil), Object)
287
+ FFI::CallbackInfo = FFI::FunctionType
288
+
289
+ module FFI::DataConverter
290
+ def from_native(value, ctx); end
291
+ def native_type(type = T.unsafe(nil)); end
292
+ def to_native(value, ctx); end
293
+ end
294
+
295
+ class FFI::DynamicLibrary
296
+ def initialize(_arg0, _arg1); end
297
+
298
+ def find_function(_arg0); end
299
+ def find_symbol(_arg0); end
300
+ def find_variable(_arg0); end
301
+ def last_error; end
302
+ def name; end
303
+
304
+ class << self
305
+ def last_error; end
306
+ def open(_arg0, _arg1); end
307
+ end
308
+ end
309
+
310
+ FFI::DynamicLibrary::RTLD_ALL_MASK = T.let(T.unsafe(nil), Integer)
311
+ FFI::DynamicLibrary::RTLD_BINDING_MASK = T.let(T.unsafe(nil), Integer)
312
+ FFI::DynamicLibrary::RTLD_DEEPBIND = T.let(T.unsafe(nil), Integer)
313
+ FFI::DynamicLibrary::RTLD_FIRST = T.let(T.unsafe(nil), Integer)
314
+ FFI::DynamicLibrary::RTLD_GLOBAL = T.let(T.unsafe(nil), Integer)
315
+ FFI::DynamicLibrary::RTLD_LAZY = T.let(T.unsafe(nil), Integer)
316
+ FFI::DynamicLibrary::RTLD_LOCAL = T.let(T.unsafe(nil), Integer)
317
+ FFI::DynamicLibrary::RTLD_LOCATION_MASK = T.let(T.unsafe(nil), Integer)
318
+ FFI::DynamicLibrary::RTLD_MEMBER = T.let(T.unsafe(nil), Integer)
319
+ FFI::DynamicLibrary::RTLD_NODELETE = T.let(T.unsafe(nil), Integer)
320
+ FFI::DynamicLibrary::RTLD_NOLOAD = T.let(T.unsafe(nil), Integer)
321
+ FFI::DynamicLibrary::RTLD_NOW = T.let(T.unsafe(nil), Integer)
322
+
323
+ class FFI::DynamicLibrary::Symbol < ::FFI::Pointer
324
+ def inspect; end
325
+
326
+ private
327
+
328
+ def initialize_copy(_arg0); end
329
+ end
330
+
331
+ class FFI::Enum
332
+ include ::FFI::DataConverter
333
+
334
+ def initialize(*args); end
335
+
336
+ def [](query); end
337
+ def find(query); end
338
+ def from_native(val, ctx); end
339
+ def native_type; end
340
+ def symbol_map; end
341
+ def symbols; end
342
+ def tag; end
343
+ def to_h; end
344
+ def to_hash; end
345
+ def to_native(val, ctx); end
346
+ end
347
+
348
+ class FFI::Enums
349
+ def initialize; end
350
+
351
+ def <<(enum); end
352
+ def __map_symbol(symbol); end
353
+ def find(query); end
354
+ end
355
+
356
+ class FFI::Function < ::FFI::Pointer
357
+ def initialize(*_arg0); end
358
+
359
+ def attach(_arg0, _arg1); end
360
+ def autorelease; end
361
+ def autorelease=(_arg0); end
362
+ def autorelease?; end
363
+ def call(*_arg0); end
364
+ def free; end
365
+
366
+ private
367
+
368
+ def initialize_copy(_arg0); end
369
+ end
370
+
371
+ FFI::FunctionInfo = FFI::FunctionType
372
+
373
+ class FFI::FunctionType < ::FFI::Type
374
+ def initialize(*_arg0); end
375
+
376
+ def param_types; end
377
+ def result_type; end
378
+ end
379
+
380
+ module FFI::IO
381
+ class << self
382
+ def for_fd(fd, mode = T.unsafe(nil)); end
383
+ def native_read(io, buf, len); end
384
+ end
385
+ end
386
+
387
+ module FFI::LastError
388
+ private
389
+
390
+ def error; end
391
+ def error=(_arg0); end
392
+
393
+ class << self
394
+ def error; end
395
+ def error=(_arg0); end
396
+ end
397
+ end
398
+
399
+ module FFI::Library
400
+ def attach_function(name, func, args, returns = T.unsafe(nil), options = T.unsafe(nil)); end
401
+ def attach_variable(mname, a1, a2 = T.unsafe(nil)); end
402
+ def bitmask(*args); end
403
+ def callback(*args); end
404
+ def enum(*args); end
405
+ def enum_type(name); end
406
+ def enum_value(symbol); end
407
+ def ffi_convention(convention = T.unsafe(nil)); end
408
+ def ffi_lib(*names); end
409
+ def ffi_lib_flags(*flags); end
410
+ def ffi_libraries; end
411
+ def find_type(t); end
412
+ def function_names(name, arg_types); end
413
+ def typedef(old, add, info = T.unsafe(nil)); end
414
+
415
+ private
416
+
417
+ def generic_enum(klass, *args); end
418
+
419
+ class << self
420
+ def extended(mod); end
421
+ end
422
+ end
423
+
424
+ FFI::Library::CURRENT_PROCESS = T.let(T.unsafe(nil), Object)
425
+ FFI::Library::FlagsMap = T.let(T.unsafe(nil), Hash)
426
+ FFI::Library::LIBC = T.let(T.unsafe(nil), String)
427
+
428
+ class FFI::ManagedStruct < ::FFI::Struct
429
+ def initialize(pointer = T.unsafe(nil)); end
430
+ end
431
+
432
+ class FFI::MemoryPointer < ::FFI::Pointer
433
+ def initialize(*_arg0); end
434
+
435
+ class << self
436
+ def from_string(_arg0); end
437
+ end
438
+ end
439
+
440
+ FFI::NativeLibrary = FFI::DynamicLibrary
441
+ module FFI::NativeType; end
442
+ FFI::NativeType::BOOL = T.let(T.unsafe(nil), FFI::Type::Builtin)
443
+ FFI::NativeType::BUFFER_IN = T.let(T.unsafe(nil), FFI::Type::Builtin)
444
+ FFI::NativeType::BUFFER_INOUT = T.let(T.unsafe(nil), FFI::Type::Builtin)
445
+ FFI::NativeType::BUFFER_OUT = T.let(T.unsafe(nil), FFI::Type::Builtin)
446
+ FFI::NativeType::FLOAT32 = T.let(T.unsafe(nil), FFI::Type::Builtin)
447
+ FFI::NativeType::FLOAT64 = T.let(T.unsafe(nil), FFI::Type::Builtin)
448
+ FFI::NativeType::INT16 = T.let(T.unsafe(nil), FFI::Type::Builtin)
449
+ FFI::NativeType::INT32 = T.let(T.unsafe(nil), FFI::Type::Builtin)
450
+ FFI::NativeType::INT64 = T.let(T.unsafe(nil), FFI::Type::Builtin)
451
+ FFI::NativeType::INT8 = T.let(T.unsafe(nil), FFI::Type::Builtin)
452
+ FFI::NativeType::LONG = T.let(T.unsafe(nil), FFI::Type::Builtin)
453
+ FFI::NativeType::LONGDOUBLE = T.let(T.unsafe(nil), FFI::Type::Builtin)
454
+ FFI::NativeType::POINTER = T.let(T.unsafe(nil), FFI::Type::Builtin)
455
+ FFI::NativeType::STRING = T.let(T.unsafe(nil), FFI::Type::Builtin)
456
+ FFI::NativeType::UINT16 = T.let(T.unsafe(nil), FFI::Type::Builtin)
457
+ FFI::NativeType::UINT32 = T.let(T.unsafe(nil), FFI::Type::Builtin)
458
+ FFI::NativeType::UINT64 = T.let(T.unsafe(nil), FFI::Type::Builtin)
459
+ FFI::NativeType::UINT8 = T.let(T.unsafe(nil), FFI::Type::Builtin)
460
+ FFI::NativeType::ULONG = T.let(T.unsafe(nil), FFI::Type::Builtin)
461
+ FFI::NativeType::VARARGS = T.let(T.unsafe(nil), FFI::Type::Builtin)
462
+ FFI::NativeType::VOID = T.let(T.unsafe(nil), FFI::Type::Builtin)
463
+
464
+ class FFI::NotFoundError < ::LoadError
465
+ def initialize(function, *libraries); end
466
+ end
467
+
468
+ class FFI::NullPointerError < ::RuntimeError; end
469
+
470
+ module FFI::Platform
471
+ class << self
472
+ def bsd?; end
473
+ def is_os(os); end
474
+ def mac?; end
475
+ def solaris?; end
476
+ def unix?; end
477
+ def windows?; end
478
+ end
479
+ end
480
+
481
+ FFI::Platform::ADDRESS_ALIGN = T.let(T.unsafe(nil), Integer)
482
+ FFI::Platform::ADDRESS_SIZE = T.let(T.unsafe(nil), Integer)
483
+ FFI::Platform::ARCH = T.let(T.unsafe(nil), String)
484
+ FFI::Platform::BIG_ENDIAN = T.let(T.unsafe(nil), Integer)
485
+ FFI::Platform::BYTE_ORDER = T.let(T.unsafe(nil), Integer)
486
+ FFI::Platform::CONF_DIR = T.let(T.unsafe(nil), String)
487
+ FFI::Platform::CPU = T.let(T.unsafe(nil), String)
488
+ FFI::Platform::DOUBLE_ALIGN = T.let(T.unsafe(nil), Integer)
489
+ FFI::Platform::DOUBLE_SIZE = T.let(T.unsafe(nil), Integer)
490
+ FFI::Platform::FLOAT_ALIGN = T.let(T.unsafe(nil), Integer)
491
+ FFI::Platform::FLOAT_SIZE = T.let(T.unsafe(nil), Integer)
492
+ FFI::Platform::INT16_ALIGN = T.let(T.unsafe(nil), Integer)
493
+ FFI::Platform::INT16_SIZE = T.let(T.unsafe(nil), Integer)
494
+ FFI::Platform::INT32_ALIGN = T.let(T.unsafe(nil), Integer)
495
+ FFI::Platform::INT32_SIZE = T.let(T.unsafe(nil), Integer)
496
+ FFI::Platform::INT64_ALIGN = T.let(T.unsafe(nil), Integer)
497
+ FFI::Platform::INT64_SIZE = T.let(T.unsafe(nil), Integer)
498
+ FFI::Platform::INT8_ALIGN = T.let(T.unsafe(nil), Integer)
499
+ FFI::Platform::INT8_SIZE = T.let(T.unsafe(nil), Integer)
500
+ FFI::Platform::IS_BSD = T.let(T.unsafe(nil), TrueClass)
501
+ FFI::Platform::IS_MAC = T.let(T.unsafe(nil), TrueClass)
502
+ FFI::Platform::LIBC = T.let(T.unsafe(nil), String)
503
+ FFI::Platform::LIBPREFIX = T.let(T.unsafe(nil), String)
504
+ FFI::Platform::LIBSUFFIX = T.let(T.unsafe(nil), String)
505
+ FFI::Platform::LITTLE_ENDIAN = T.let(T.unsafe(nil), Integer)
506
+ FFI::Platform::LONG_ALIGN = T.let(T.unsafe(nil), Integer)
507
+ FFI::Platform::LONG_DOUBLE_ALIGN = T.let(T.unsafe(nil), Integer)
508
+ FFI::Platform::LONG_DOUBLE_SIZE = T.let(T.unsafe(nil), Integer)
509
+ FFI::Platform::LONG_SIZE = T.let(T.unsafe(nil), Integer)
510
+ FFI::Platform::NAME = T.let(T.unsafe(nil), String)
511
+ FFI::Platform::OS = T.let(T.unsafe(nil), String)
512
+ FFI::Platform::OSVERSION = T.let(T.unsafe(nil), Integer)
513
+ class FFI::PlatformError < ::LoadError; end
514
+
515
+ class FFI::Pointer < ::FFI::AbstractMemory
516
+ def initialize(*_arg0); end
517
+
518
+ def +(_arg0); end
519
+ def ==(_arg0); end
520
+ def address; end
521
+ def autorelease=(_arg0); end
522
+ def autorelease?; end
523
+ def free; end
524
+ def inspect; end
525
+ def null?; end
526
+ def order(*_arg0); end
527
+ def read(type); end
528
+ def read_array_of_type(type, reader, length); end
529
+ def read_string(len = T.unsafe(nil)); end
530
+ def read_string_length(len); end
531
+ def read_string_to_null; end
532
+ def slice(_arg0, _arg1); end
533
+ def to_i; end
534
+ def to_ptr; end
535
+ def to_s; end
536
+ def type_size; end
537
+ def write(type, value); end
538
+ def write_array_of_type(type, writer, ary); end
539
+ def write_string(str, len = T.unsafe(nil)); end
540
+ def write_string_length(str, len); end
541
+
542
+ private
543
+
544
+ def initialize_copy(_arg0); end
545
+
546
+ class << self
547
+ def size; end
548
+ end
549
+ end
550
+
551
+ FFI::Pointer::NULL = T.let(T.unsafe(nil), FFI::Pointer)
552
+ FFI::Pointer::SIZE = T.let(T.unsafe(nil), Integer)
553
+ FFI::SizeTypes = T.let(T.unsafe(nil), Hash)
554
+
555
+ class FFI::StrPtrConverter
556
+ extend ::FFI::DataConverter
557
+
558
+ class << self
559
+ def from_native(val, ctx); end
560
+ end
561
+ end
562
+
563
+ class FFI::Struct
564
+ def initialize(*_arg0); end
565
+
566
+ def [](_arg0); end
567
+ def []=(_arg0, _arg1); end
568
+ def align; end
569
+ def alignment; end
570
+ def clear; end
571
+ def layout; end
572
+ def members; end
573
+ def null?; end
574
+ def offset_of(name); end
575
+ def offsets; end
576
+ def order(*_arg0); end
577
+ def pointer; end
578
+ def size; end
579
+ def to_ptr; end
580
+ def values; end
581
+
582
+ private
583
+
584
+ def initialize_copy(_arg0); end
585
+ def layout=(_arg0); end
586
+ def pointer=(_arg0); end
587
+
588
+ class << self
589
+ def alignment; end
590
+ def alloc_in(*_arg0); end
591
+ def alloc_inout(*_arg0); end
592
+ def alloc_out(*_arg0); end
593
+ def auto_ptr; end
594
+ def by_ref(flags = T.unsafe(nil)); end
595
+ def by_value; end
596
+ def in; end
597
+ def layout(*spec); end
598
+ def members; end
599
+ def new_in(*_arg0); end
600
+ def new_inout(*_arg0); end
601
+ def new_out(*_arg0); end
602
+ def offset_of(name); end
603
+ def offsets; end
604
+ def out; end
605
+ def ptr(flags = T.unsafe(nil)); end
606
+ def size; end
607
+ def size=(size); end
608
+ def val; end
609
+
610
+ protected
611
+
612
+ def align(alignment = T.unsafe(nil)); end
613
+ def aligned(alignment = T.unsafe(nil)); end
614
+ def callback(params, ret); end
615
+ def enclosing_module; end
616
+ def find_field_type(type, mod = T.unsafe(nil)); end
617
+ def find_type(type, mod = T.unsafe(nil)); end
618
+ def pack(packed = T.unsafe(nil)); end
619
+ def packed(packed = T.unsafe(nil)); end
620
+
621
+ private
622
+
623
+ def array_layout(builder, spec); end
624
+ def hash_layout(builder, spec); end
625
+ end
626
+ end
627
+
628
+ class FFI::Struct::InlineArray
629
+ include ::Enumerable
630
+
631
+ def initialize(_arg0, _arg1); end
632
+
633
+ def [](_arg0); end
634
+ def []=(_arg0, _arg1); end
635
+ def each; end
636
+ def size; end
637
+ def to_a; end
638
+ def to_ptr; end
639
+ end
640
+
641
+ class FFI::Struct::ManagedStructConverter < ::FFI::StructByReference
642
+ def initialize(struct_class); end
643
+
644
+ def from_native(ptr, ctx); end
645
+ end
646
+
647
+ class FFI::StructByReference
648
+ include ::FFI::DataConverter
649
+
650
+ def initialize(struct_class); end
651
+
652
+ def from_native(value, ctx); end
653
+ def native_type; end
654
+ def struct_class; end
655
+ def to_native(value, ctx); end
656
+ end
657
+
658
+ class FFI::StructByValue < ::FFI::Type
659
+ def initialize(_arg0); end
660
+
661
+ def layout; end
662
+ def struct_class; end
663
+ end
664
+
665
+ class FFI::StructLayout < ::FFI::Type
666
+ def initialize(_arg0, _arg1, _arg2); end
667
+
668
+ def [](_arg0); end
669
+ def __union!; end
670
+ def fields; end
671
+ def members; end
672
+ def offset_of(field_name); end
673
+ def offsets; end
674
+ def to_a; end
675
+ end
676
+
677
+ class FFI::StructLayout::Array < ::FFI::StructLayout::Field
678
+ def get(_arg0); end
679
+ def put(_arg0, _arg1); end
680
+ end
681
+
682
+ class FFI::StructLayout::CharArray < ::FFI::Struct::InlineArray
683
+ def to_s; end
684
+ def to_str; end
685
+ end
686
+
687
+ class FFI::StructLayout::Enum < ::FFI::StructLayout::Field
688
+ def get(ptr); end
689
+ def put(ptr, value); end
690
+ end
691
+
692
+ class FFI::StructLayout::Field
693
+ def initialize(*_arg0); end
694
+
695
+ def alignment; end
696
+ def get(_arg0); end
697
+ def name; end
698
+ def offset; end
699
+ def put(_arg0, _arg1); end
700
+ def size; end
701
+ def type; end
702
+ end
703
+
704
+ class FFI::StructLayout::Function < ::FFI::StructLayout::Field
705
+ def get(_arg0); end
706
+ def put(_arg0, _arg1); end
707
+ end
708
+
709
+ class FFI::StructLayout::InnerStruct < ::FFI::StructLayout::Field
710
+ def get(ptr); end
711
+ def put(ptr, value); end
712
+ end
713
+
714
+ class FFI::StructLayout::Mapped < ::FFI::StructLayout::Field
715
+ def initialize(name, offset, type, orig_field); end
716
+
717
+ def get(ptr); end
718
+ def put(ptr, value); end
719
+ end
720
+
721
+ class FFI::StructLayout::Number < ::FFI::StructLayout::Field; end
722
+ class FFI::StructLayout::Pointer < ::FFI::StructLayout::Field; end
723
+ class FFI::StructLayout::String < ::FFI::StructLayout::Field; end
724
+
725
+ class FFI::StructLayoutBuilder
726
+ def initialize; end
727
+
728
+ def add(name, type, offset = T.unsafe(nil)); end
729
+ def add_array(name, type, count, offset = T.unsafe(nil)); end
730
+ def add_field(name, type, offset = T.unsafe(nil)); end
731
+ def add_struct(name, type, offset = T.unsafe(nil)); end
732
+ def alignment; end
733
+ def alignment=(align); end
734
+ def build; end
735
+ def packed=(packed); end
736
+ def size; end
737
+ def size=(size); end
738
+ def union=(is_union); end
739
+ def union?; end
740
+
741
+ private
742
+
743
+ def align(offset, align); end
744
+ def field_for_type(name, offset, type); end
745
+ end
746
+
747
+ FFI::StructLayoutBuilder::NUMBER_TYPES = T.let(T.unsafe(nil), Array)
748
+ FFI::TYPE_BOOL = T.let(T.unsafe(nil), FFI::Type::Builtin)
749
+ FFI::TYPE_BUFFER_IN = T.let(T.unsafe(nil), FFI::Type::Builtin)
750
+ FFI::TYPE_BUFFER_INOUT = T.let(T.unsafe(nil), FFI::Type::Builtin)
751
+ FFI::TYPE_BUFFER_OUT = T.let(T.unsafe(nil), FFI::Type::Builtin)
752
+ FFI::TYPE_FLOAT32 = T.let(T.unsafe(nil), FFI::Type::Builtin)
753
+ FFI::TYPE_FLOAT64 = T.let(T.unsafe(nil), FFI::Type::Builtin)
754
+ FFI::TYPE_INT16 = T.let(T.unsafe(nil), FFI::Type::Builtin)
755
+ FFI::TYPE_INT32 = T.let(T.unsafe(nil), FFI::Type::Builtin)
756
+ FFI::TYPE_INT64 = T.let(T.unsafe(nil), FFI::Type::Builtin)
757
+ FFI::TYPE_INT8 = T.let(T.unsafe(nil), FFI::Type::Builtin)
758
+ FFI::TYPE_LONG = T.let(T.unsafe(nil), FFI::Type::Builtin)
759
+ FFI::TYPE_LONGDOUBLE = T.let(T.unsafe(nil), FFI::Type::Builtin)
760
+ FFI::TYPE_POINTER = T.let(T.unsafe(nil), FFI::Type::Builtin)
761
+ FFI::TYPE_STRING = T.let(T.unsafe(nil), FFI::Type::Builtin)
762
+ FFI::TYPE_UINT16 = T.let(T.unsafe(nil), FFI::Type::Builtin)
763
+ FFI::TYPE_UINT32 = T.let(T.unsafe(nil), FFI::Type::Builtin)
764
+ FFI::TYPE_UINT64 = T.let(T.unsafe(nil), FFI::Type::Builtin)
765
+ FFI::TYPE_UINT8 = T.let(T.unsafe(nil), FFI::Type::Builtin)
766
+ FFI::TYPE_ULONG = T.let(T.unsafe(nil), FFI::Type::Builtin)
767
+ FFI::TYPE_VARARGS = T.let(T.unsafe(nil), FFI::Type::Builtin)
768
+ FFI::TYPE_VOID = T.let(T.unsafe(nil), FFI::Type::Builtin)
769
+
770
+ class FFI::Type
771
+ def initialize(_arg0); end
772
+
773
+ def alignment; end
774
+ def inspect; end
775
+ def size; end
776
+ end
777
+
778
+ FFI::Type::Array = FFI::ArrayType
779
+ FFI::Type::BOOL = T.let(T.unsafe(nil), FFI::Type::Builtin)
780
+ FFI::Type::BUFFER_IN = T.let(T.unsafe(nil), FFI::Type::Builtin)
781
+ FFI::Type::BUFFER_INOUT = T.let(T.unsafe(nil), FFI::Type::Builtin)
782
+ FFI::Type::BUFFER_OUT = T.let(T.unsafe(nil), FFI::Type::Builtin)
783
+
784
+ class FFI::Type::Builtin < ::FFI::Type
785
+ def inspect; end
786
+ end
787
+
788
+ FFI::Type::CHAR = T.let(T.unsafe(nil), FFI::Type::Builtin)
789
+ FFI::Type::DOUBLE = T.let(T.unsafe(nil), FFI::Type::Builtin)
790
+ FFI::Type::FLOAT = T.let(T.unsafe(nil), FFI::Type::Builtin)
791
+ FFI::Type::FLOAT32 = T.let(T.unsafe(nil), FFI::Type::Builtin)
792
+ FFI::Type::FLOAT64 = T.let(T.unsafe(nil), FFI::Type::Builtin)
793
+ FFI::Type::Function = FFI::FunctionType
794
+ FFI::Type::INT = T.let(T.unsafe(nil), FFI::Type::Builtin)
795
+ FFI::Type::INT16 = T.let(T.unsafe(nil), FFI::Type::Builtin)
796
+ FFI::Type::INT32 = T.let(T.unsafe(nil), FFI::Type::Builtin)
797
+ FFI::Type::INT64 = T.let(T.unsafe(nil), FFI::Type::Builtin)
798
+ FFI::Type::INT8 = T.let(T.unsafe(nil), FFI::Type::Builtin)
799
+ FFI::Type::LONG = T.let(T.unsafe(nil), FFI::Type::Builtin)
800
+ FFI::Type::LONGDOUBLE = T.let(T.unsafe(nil), FFI::Type::Builtin)
801
+ FFI::Type::LONG_LONG = T.let(T.unsafe(nil), FFI::Type::Builtin)
802
+
803
+ class FFI::Type::Mapped < ::FFI::Type
804
+ def initialize(_arg0); end
805
+
806
+ def from_native(*_arg0); end
807
+ def native_type; end
808
+ def to_native(*_arg0); end
809
+ def type; end
810
+ end
811
+
812
+ FFI::Type::POINTER = T.let(T.unsafe(nil), FFI::Type::Builtin)
813
+ FFI::Type::SCHAR = T.let(T.unsafe(nil), FFI::Type::Builtin)
814
+ FFI::Type::SHORT = T.let(T.unsafe(nil), FFI::Type::Builtin)
815
+ FFI::Type::SINT = T.let(T.unsafe(nil), FFI::Type::Builtin)
816
+ FFI::Type::SLONG = T.let(T.unsafe(nil), FFI::Type::Builtin)
817
+ FFI::Type::SLONG_LONG = T.let(T.unsafe(nil), FFI::Type::Builtin)
818
+ FFI::Type::SSHORT = T.let(T.unsafe(nil), FFI::Type::Builtin)
819
+ FFI::Type::STRING = T.let(T.unsafe(nil), FFI::Type::Builtin)
820
+ FFI::Type::Struct = FFI::StructByValue
821
+ FFI::Type::UCHAR = T.let(T.unsafe(nil), FFI::Type::Builtin)
822
+ FFI::Type::UINT = T.let(T.unsafe(nil), FFI::Type::Builtin)
823
+ FFI::Type::UINT16 = T.let(T.unsafe(nil), FFI::Type::Builtin)
824
+ FFI::Type::UINT32 = T.let(T.unsafe(nil), FFI::Type::Builtin)
825
+ FFI::Type::UINT64 = T.let(T.unsafe(nil), FFI::Type::Builtin)
826
+ FFI::Type::UINT8 = T.let(T.unsafe(nil), FFI::Type::Builtin)
827
+ FFI::Type::ULONG = T.let(T.unsafe(nil), FFI::Type::Builtin)
828
+ FFI::Type::ULONG_LONG = T.let(T.unsafe(nil), FFI::Type::Builtin)
829
+ FFI::Type::USHORT = T.let(T.unsafe(nil), FFI::Type::Builtin)
830
+ FFI::Type::VARARGS = T.let(T.unsafe(nil), FFI::Type::Builtin)
831
+ FFI::Type::VOID = T.let(T.unsafe(nil), FFI::Type::Builtin)
832
+ FFI::TypeDefs = T.let(T.unsafe(nil), Hash)
833
+ FFI::USE_THIS_PROCESS_AS_LIBRARY = T.let(T.unsafe(nil), Object)
834
+
835
+ class FFI::Union < ::FFI::Struct
836
+ class << self
837
+ def builder; end
838
+ end
839
+ end
840
+
841
+ FFI::VERSION = T.let(T.unsafe(nil), String)
842
+
843
+ class FFI::VariadicInvoker
844
+ def initialize(_arg0, _arg1, _arg2, _arg3); end
845
+
846
+ def attach(mod, mname); end
847
+ def call(*args, &block); end
848
+ def invoke(_arg0, _arg1); end
849
+ end