@ -30,7 +30,7 @@
namespace qrcodegen {
/*
* An appendable sequence of bits (0's and 1's).
* An appendable sequence of bits (0s and 1s).
*/
class BitBuffer final : public std::vector<bool> {
@ -28,7 +28,7 @@ import java.util.Objects;
/**
public final class BitBuffer implements Cloneable {
@ -950,7 +950,7 @@ var qrcodegen = new function() {
* A private helper class that represents an appendable sequence of bits.
* A private helper class that represents an appendable sequence of bits (0s and 1s).
* This constructor creates an empty bit buffer (length 0).
function BitBuffer() {
@ -811,7 +811,7 @@ class _ReedSolomonGenerator(object):
class _BitBuffer(list):
"""An appendable sequence of bits (0's and 1's)."""
"""An appendable sequence of bits (0s and 1s)."""
def get_bytes(self):
"""Packs this buffer's bits into bytes in big endian,
@ -1059,6 +1059,7 @@ impl QrSegmentMode {
/*---- Bit buffer functionality ----*/
// An appendable sequence of bits (0s and 1s).
pub struct BitBuffer(pub Vec<bool>);
@ -884,7 +884,7 @@ namespace qrcodegen {
* An appendable sequence of bits. The implicit constructor creates an empty bit buffer (length 0).
* An appendable sequence of bits (0s and 1s). The implicit constructor creates an empty bit buffer (length 0).
class BitBuffer extends Array<bit> {