From af3c317e38541e4070960a25eca49704f234dff8 Mon Sep 17 00:00:00 2001 From: hoshinotsuyoshi Date: Wed, 10 Apr 2024 19:26:27 +0900 Subject: [PATCH] fix: Y::Lib0::Decoding.read_var_uint8_array increments decoder's `pos` --- gems/yrb-actioncable/lib/y/lib0/decoding.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gems/yrb-actioncable/lib/y/lib0/decoding.rb b/gems/yrb-actioncable/lib/y/lib0/decoding.rb index 88d99aa0..75685737 100644 --- a/gems/yrb-actioncable/lib/y/lib0/decoding.rb +++ b/gems/yrb-actioncable/lib/y/lib0/decoding.rb @@ -28,6 +28,8 @@ def self.clone(decoder, new_pos = decoder.pos) def self.read_uint8_array(decoder, size) view = Buffer.create_uint8_array_view_from_buffer(decoder.arr, decoder.pos + 0, size) + decoder.pos += size + view end def self.read_var_uint8_array(decoder)