parsanol 1.3.17-arm-linux → 1.3.19-arm-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5e40b220a47c8182b1c9469a25dbeb3cbd304dfa046580bb2be3260eee97e654
4
- data.tar.gz: 0e4060af42636ef42869f7464c476a692602233da8b299471344e55ad930fc89
3
+ metadata.gz: 3c7eb750cc141454bce0844f230378f9feef26181005c1404a8669e7089ae61f
4
+ data.tar.gz: 14aa5527e6c63b84886be2083a4ae66745061f06a586d7fa94a925018f62a10d
5
5
  SHA512:
6
- metadata.gz: 14f78c5ec88d721fe37ae18cf39de4d571812e78714e3caed424ec8a2d39b5898afd5b3d0a6eef3977d177289742e1c4c9df5bd4bca06529f9482b4b4704cd4f
7
- data.tar.gz: 224b43820baa9f6bf8cf8e0bc4b0a9d5bf56e6db522ad9f8f06c0ff6cf7c3fb44d8f10be6f8711cace1970c036accc4874b275c4789fc2a054ca57ea32d2f679
6
+ metadata.gz: 9ea7f11fe8663bb1be7b7c1d64ef6b893b206557376a56dd4d8b7d8351524af9a77dbeb03865fed12928671e47f2f4651746bc44cebf22fb3f9c492328c0b736
7
+ data.tar.gz: 83d4c565f06d262acf7d92f3634d365062fa3516f9b444a35adb7768f6d4bb267aba11241141be1411673d16bd4dcd316cf7cc2c82263edfa31b2d430a9fc211
Binary file
Binary file
Binary file
Binary file
@@ -113,13 +113,18 @@ module Parsanol
113
113
  end
114
114
 
115
115
  # Two-call buffer protocol: cap=0 asks for the needed size, then
116
- # one allocation carries the whole batch.
116
+ # the batch lands in a persistent buffer that only grows —
117
+ # steady-state parses allocate nothing.
117
118
  def parse_into(handle, input)
118
119
  needed = @binding.c_parse(handle, input, nil, 0)
119
120
  return needed unless needed.negative?
120
121
 
121
- @buffer = FFI::MemoryPointer.new(:uint64, -needed)
122
- @binding.c_parse(handle, input, @buffer, -needed)
122
+ cap = -needed
123
+ if @buffer.nil? || @buffer.total < cap * 8
124
+ @buffer&.free
125
+ @buffer = FFI::MemoryPointer.new(:uint64, cap * 2)
126
+ end
127
+ @binding.c_parse(handle, input, @buffer, cap)
123
128
  end
124
129
  end
125
130
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Parsanol
4
- VERSION = "1.3.17"
4
+ VERSION = "1.3.19"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: parsanol
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.17
4
+ version: 1.3.19
5
5
  platform: arm-linux
6
6
  authors:
7
7
  - Ribose Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-09-15 00:00:00.000000000 Z
11
+ date: 2026-09-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake