We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c15920a commit bbe408bCopy full SHA for bbe408b
1 file changed
lib/flatbuffers/alignable.rb
@@ -18,8 +18,9 @@ module FlatBuffers
18
using AppendAsBytes if const_defined?(:AppendAsBytes)
19
20
module Alignable
21
- LARGEST_ALIGNMENT_SIZE = 8 # IO::Buffer.size_of(:u64)
22
- LARGEST_PADDING = "\x00" * 7
+ # Apache Arrow suggests 64 byte alignment.
+ LARGEST_ALIGNMENT_SIZE = 64
23
+ LARGEST_PADDING = "\x00" * (LARGEST_ALIGNMENT_SIZE - 1)
24
25
private
26
def compute_padding_size(size, alignment_byte)
0 commit comments