API
Types
Functions
BitOperations.bclear
BitOperations.bflip
BitOperations.bflip
BitOperations.bget
BitOperations.bget
BitOperations.bmask
BitOperations.bmask
BitOperations.bset
BitOperations.bset
BitOperations.bset
BitOperations.bsizeof
BitOperations.lsbget
BitOperations.lsbget
BitOperations.lsbmask
BitOperations.lsbmask
BitOperations.msbget
BitOperations.msbget
BitOperations.msbmask
BitOperations.msbmask
BitOperations.zigzagdec
BitOperations.zigzagenc
Documentation
BitOperations.bclear
— Methodbclear(x::T, bit::Integer)::T where {T<:Integer}
Returns a modified copy of x, with bit bit
cleared (set to zero).
BitOperations.bflip
— Methodbflip(x::T, bit::Integer)::T where {T<:Integer}
Returns a modified copy of x, with bit bit
flipped.
BitOperations.bflip
— Methodbflip(x::T, bits::UnitRange{<:Integer})::T where {T<:Integer}
Returns a modified copy of x, with all bits in bit range bits
flipped.
BitOperations.bget
— Methodbget(x::T, bit::Integer)::Bool where {T<:Integer}
Get the value of bit bit
of x.
BitOperations.bget
— Methodbget(x::T, bits::UnitRange{<:Integer})::T where {T<:Integer}
Get the value of the bit range bits
of x.
BitOperations.bmask
— Methodbmask(::Type{T}, bit::Integer)::T where {T<:Integer}
Generates a bit mask of type T
with bit bit
set to one.
BitOperations.bmask
— Methodbmask(::Type{T}, bits::UnitRange{<:Integer})::T where {T<:Integer}
Generates a bit mask of type T
with bit-range bits
set to one.
BitOperations.bset
— Methodbset(x::T, bit::Integer, y::Bool)::T where {T<:Integer}
Returns a modified copy of x, with bit bit
set to y
.
BitOperations.bset
— Methodbset(x::T, bit::Integer)::T where {T<:Integer}
Returns a modified copy of x, with bit bit
set (to one).
BitOperations.bset
— Methodbset(x::T, bits::UnitRange{<:Integer}, y::Integer)::T where {T<:Integer}
Returns a modified copy of x, with bit range bits
set to y
.
BitOperations.bsizeof
— Methodbsizeof(x)
Returns the data size of x in bits.
BitOperations.lsbget
— Methodlsbget(x::Integer)::Bool
Returns the value of the least significant bit of x.
BitOperations.lsbget
— Methodlsbget(x::T)::T where {T <: Integer}
Returns the value of the nbits
least significant bits of x.
BitOperations.lsbmask
— Methodlsbmask(::Type{T})::T where {T<:Integer}
Generates a bit mask with only the least significant bit set.
BitOperations.lsbmask
— Methodlsbmask(::Type{T}, nbits::Integer)::T where {T<:Integer}
Generates a bit mask with only the nbits
least significant bits set.
BitOperations.msbget
— Methodmsbget(x::T)::Bool where {T<:Integer}
Returns the value of the most significant bit of x.
BitOperations.msbget
— Methodmsbget(x::T)::T where {T<:Integer}
Returns the value of the nbits
most significant bits of x.
BitOperations.msbmask
— Methodmsbmask(::Type{T})::T where {T<:Integer}
Generates a bit mask with only the most significant bit set.
BitOperations.msbmask
— Methodmsbmask(::Type{T}, nbits::Integer)::T where {T<:Integer}
Generates a bit mask with only the nbits
most significant bits set.
BitOperations.zigzagdec
— Functionzigzagdec(x::Unsigned)::Signed
Zigzag-decode x, Google Protocol Buffers compatible.
BitOperations.zigzagenc
— Functionzigzagenc(x::Signed)::Unsigned
Zigzag-encode x, Google Protocol Buffers compatible.