red-flatbuffers 0.0.4 → 0.0.6
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 +4 -4
- data/doc/text/news.md +12 -0
- data/lib/flatbuffers/alignable.rb +3 -2
- data/lib/flatbuffers/serializer.rb +2 -1
- data/lib/flatbuffers/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: da9d52a03f8768c7a5a39975e2e66733a222e2eac7031f1d831b902fb4797858
|
|
4
|
+
data.tar.gz: 83c2b63223d2e54cff08fd4417311b63ed88bb97c54c057b75e97241a77ff736
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 81d54acfdea20f3ee2a495802ca1163c0dc9f33c5addf08a5c50feb42400119ed4c9e4975c8cfc776411b0239ea6fa30720712e0403f8f09d0d3b736b775f95c
|
|
7
|
+
data.tar.gz: d990ebd164eb41bbfb16217cacba7b565781817a259302e3179fc53864963f3b0ebd6a41eee8a6e61ba33a1cee47b7b6a9176f525e9e76a762ef32d6a3e8cac7
|
data/doc/text/news.md
CHANGED
|
@@ -18,8 +18,9 @@ module FlatBuffers
|
|
|
18
18
|
using AppendAsBytes if const_defined?(:AppendAsBytes)
|
|
19
19
|
|
|
20
20
|
module Alignable
|
|
21
|
-
|
|
22
|
-
|
|
21
|
+
# Apache Arrow suggests 64 byte alignment.
|
|
22
|
+
LARGEST_ALIGNMENT_SIZE = 64
|
|
23
|
+
LARGEST_PADDING = "\x00" * (LARGEST_ALIGNMENT_SIZE - 1)
|
|
23
24
|
|
|
24
25
|
private
|
|
25
26
|
def compute_padding_size(size, alignment_byte)
|
|
@@ -120,6 +120,7 @@ module FlatBuffers
|
|
|
120
120
|
add_field_array(field, value)
|
|
121
121
|
when :string
|
|
122
122
|
align!(@table, View::OFFSET_SIZE)
|
|
123
|
+
align!(@values, View::OFFSET_SIZE)
|
|
123
124
|
@field_metadata[field] = {
|
|
124
125
|
inline: false,
|
|
125
126
|
table_offset: @table.bytesize,
|
|
@@ -260,7 +261,7 @@ module FlatBuffers
|
|
|
260
261
|
value.each do |v|
|
|
261
262
|
sub_table_serializer = TableSerializer.new
|
|
262
263
|
sub_table_data, sub_table_offset =
|
|
263
|
-
|
|
264
|
+
klass.serialize(v, sub_table_serializer)
|
|
264
265
|
|
|
265
266
|
element_offset = @values.bytesize + sub_table_offset
|
|
266
267
|
# Update offset placeholder.
|
data/lib/flatbuffers/version.rb
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Copyright 2025 Sutou Kouhei <kou@clear-code.com>
|
|
1
|
+
# Copyright 2025-2026 Sutou Kouhei <kou@clear-code.com>
|
|
2
2
|
#
|
|
3
3
|
# Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
4
|
# you may not use this file except in compliance with the License.
|
|
@@ -13,5 +13,5 @@
|
|
|
13
13
|
# limitations under the License.
|
|
14
14
|
|
|
15
15
|
module FlatBuffers
|
|
16
|
-
VERSION = "0.0.
|
|
16
|
+
VERSION = "0.0.6"
|
|
17
17
|
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: red-flatbuffers
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.6
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sutou Kouhei
|
|
@@ -63,7 +63,7 @@ licenses:
|
|
|
63
63
|
- Apache-2.0
|
|
64
64
|
metadata:
|
|
65
65
|
bug_tracker_uri: https://github.com/red-data-tools/red-flatbuffers/issues
|
|
66
|
-
changelog_uri: https://github.com/red-data-tools/red-flatbuffers/releases/tag/0.0.
|
|
66
|
+
changelog_uri: https://github.com/red-data-tools/red-flatbuffers/releases/tag/0.0.6
|
|
67
67
|
source_code_uri: https://github.com/red-data-tools/red-flatbuffers
|
|
68
68
|
rdoc_options: []
|
|
69
69
|
require_paths:
|