Skip to content

redundant encode_signed_varint function #44

@arhik

Description

@arhik

After #42 merge encode_signed_varint! doesn't match its functionality and lost its purpose. So this function can be removed altogether.

"""
encode_signed_varint!(buf, value)
Encode a signed integer as a variable-length integer.
Uses zigzag encoding for signed values.
"""
function encode_signed_varint!(buf::Vector{UInt8}, value::Union{UInt16, UInt32, UInt64})
# For float bits, encode as unsigned varint
encode_varint!(buf, UInt64(value))
end

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions