Sha256: 2972da873545721c68ff71b4c5eec2025c79ac8039c6872ff3ac9aa7e4dae053
Contents?: true
Size: 289 Bytes
Versions: 1
Compression:
Stored size: 289 Bytes
Contents
# frozen_string_literal: true require_relative './base' module Ssz class BitVictor < Base def initialize(bits, capacity:) @capacity = capacity @bits = bits end def serialize ByteBuffer.from_bit_array(@bits.map{|b| b ? 1 : 0}).serialize end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ssz-0.1.0 | lib/ssz/bit_victor.rb |