parsanol 1.3.18-aarch64-linux → 1.3.19-aarch64-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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 49b68d325094e9538befea2fccb16305ac72f50a1256b324b7749eff6f5b5602
|
|
4
|
+
data.tar.gz: 551a5afa47827939c72848cc572d58b01443c361c4c979964058ce0a3ecc446b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2f0dc3fc23d8a8b8824246511e2b7acdf8b626b7bb8e49b3be99cf5f0b9eb24a8c7bb6591bc3deea6c1fefb30bf5ed7e360b50d7ca670829a6dbe10516937c83
|
|
7
|
+
data.tar.gz: 7cd18ec11e80851841cb3a556cfa2be92367dab528c0e633cc54ceddf63137771e77d0ce3472db7b3d05437bea60407b35d52e53437be77ffe61664032449dbd
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
data/lib/parsanol/native/ffi.rb
CHANGED
|
@@ -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
|
-
#
|
|
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
|
-
|
|
122
|
-
@
|
|
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
|
data/lib/parsanol/version.rb
CHANGED