io-event 0.3.3 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 889604c87afea8f1d84e1ee40ada077792e84cfa77d074d695bf6cc1f27b69e1
4
- data.tar.gz: c46aada520c6a8ba41918c7c3f794922befc5012fc9fe5954be6a4b15b920a20
3
+ metadata.gz: 202f6fedc64c46fd6d6ecfb8d8ca9a8e5f6e41c1c46182bb5b62ed03116aeb07
4
+ data.tar.gz: a1d8fe1987852db3c4c6187c771783c98c1c661536690b74a499a951273da39f
5
5
  SHA512:
6
- metadata.gz: 98050d505cf276b82824ab4c4371f632609c24fa06249feffbce10eeb8a3d8f45760c4472d4046b473a3da61ab75c60ddbbe93f0e9671d9bd5411abc705558a9
7
- data.tar.gz: dc127c772d0f48fd2710e399aa5f59150724c37f5599b63c2aaba45804fdf1d68075b7808c679158ff7579fc85f5d7e987f7ee92e02493342dd7d2f29b2f5cb8
6
+ metadata.gz: f1d276fb8062dca9c05ed078f9ad91aac24e26d1a835ccee875d7ebe4e98e0bf93a236c0b97cf876aaccb4b40b52ffc4669d41c8e36215430e9d74c887c753a8
7
+ data.tar.gz: 3765cd83a4e178e25fb6f9f24a6b4f4be014a3120465c380afe9daef5f3fdbbc63ac3db336ddcf986eab3adb49b5b85aa20b460916b3f4f9a2d140424a5ec843
data/ext/IO_Event.bundle CHANGED
Binary file
data/ext/event.o CHANGED
Binary file
data/ext/interrupt.o CHANGED
Binary file
@@ -365,7 +365,7 @@ VALUE io_read_loop(VALUE _arguments) {
365
365
 
366
366
  void *base;
367
367
  size_t size;
368
- rb_io_buffer_get_mutable(arguments->buffer, &base, &size);
368
+ rb_io_buffer_get_bytes_for_writing(arguments->buffer, &base, &size);
369
369
 
370
370
  size_t offset = 0;
371
371
  size_t length = arguments->length;
@@ -437,7 +437,7 @@ VALUE io_write_loop(VALUE _arguments) {
437
437
 
438
438
  const void *base;
439
439
  size_t size;
440
- rb_io_buffer_get_immutable(arguments->buffer, &base, &size);
440
+ rb_io_buffer_get_bytes_for_reading(arguments->buffer, &base, &size);
441
441
 
442
442
  size_t offset = 0;
443
443
  size_t length = arguments->length;
@@ -396,7 +396,7 @@ VALUE io_read_loop(VALUE _arguments) {
396
396
 
397
397
  void *base;
398
398
  size_t size;
399
- rb_io_buffer_get_mutable(arguments->buffer, &base, &size);
399
+ rb_io_buffer_get_bytes_for_writing(arguments->buffer, &base, &size);
400
400
 
401
401
  size_t offset = 0;
402
402
  size_t length = arguments->length;
@@ -478,7 +478,7 @@ VALUE io_write_loop(VALUE _arguments) {
478
478
 
479
479
  const void *base;
480
480
  size_t size;
481
- rb_io_buffer_get_immutable(arguments->buffer, &base, &size);
481
+ rb_io_buffer_get_bytes_for_reading(arguments->buffer, &base, &size);
482
482
 
483
483
  size_t offset = 0;
484
484
  size_t length = arguments->length;
@@ -394,7 +394,7 @@ VALUE IO_Event_Selector_URing_io_read(VALUE self, VALUE fiber, VALUE io, VALUE b
394
394
 
395
395
  void *base;
396
396
  size_t size;
397
- rb_io_buffer_get_mutable(buffer, &base, &size);
397
+ rb_io_buffer_get_bytes_for_writing(buffer, &base, &size);
398
398
 
399
399
  size_t offset = 0;
400
400
  size_t length = NUM2SIZET(_length);
@@ -445,7 +445,7 @@ VALUE IO_Event_Selector_URing_io_write(VALUE self, VALUE fiber, VALUE io, VALUE
445
445
 
446
446
  const void *base;
447
447
  size_t size;
448
- rb_io_buffer_get_immutable(buffer, &base, &size);
448
+ rb_io_buffer_get_bytes_for_reading(buffer, &base, &size);
449
449
 
450
450
  size_t offset = 0;
451
451
  size_t length = NUM2SIZET(_length);
data/ext/kqueue.o CHANGED
Binary file
data/ext/selector.o CHANGED
Binary file
@@ -158,7 +158,7 @@ module IO::Event
158
158
  else
159
159
  break unless result
160
160
 
161
- buffer.copy(result, offset)
161
+ buffer.set_string(result, offset)
162
162
 
163
163
  size = result.bytesize
164
164
  offset += size
@@ -176,7 +176,7 @@ module IO::Event
176
176
  while true
177
177
  maximum_size = buffer.size - offset
178
178
 
179
- chunk = buffer.to_str(offset, maximum_size)
179
+ chunk = buffer.get_string(offset, maximum_size)
180
180
  case result = blocking{io.write_nonblock(chunk, exception: false)}
181
181
  when :wait_readable
182
182
  if length > 0
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module IO::Event
22
- VERSION = "0.3.3"
22
+ VERSION = "0.4.0"
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: io-event
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-18 00:00:00.000000000 Z
11
+ date: 2021-12-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bake
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
120
120
  - !ruby/object:Gem::Version
121
121
  version: '0'
122
122
  requirements: []
123
- rubygems_version: 3.3.0.dev
123
+ rubygems_version: 3.3.0
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: An event loop.