class documentation

A reference record in a reftable.

Class Method decode Decode a ref record from a stream. Returns (record, full_refname).
Method __init__ Initialize RefRecord.
Method encode Encode the ref record with prefix compression.
Instance Variable refname Undocumented
Instance Variable update_index Undocumented
Instance Variable value Undocumented
Instance Variable value_type Undocumented
def decode(cls, stream: BinaryIO, prefix: bytes = b'', min_update_index: int = 0) -> tuple[RefRecord, bytes]:

Decode a ref record from a stream. Returns (record, full_refname).

def __init__(self, refname: bytes, value_type: int, value: bytes, update_index: int = 0):

Initialize RefRecord.

Parameters
refname:bytesReference name
value_type:intType of reference value
value:bytesReference value
update_index:intUpdate index for the reference
def encode(self, prefix: bytes = b'', min_update_index: int = 0) -> bytes:

Encode the ref record with prefix compression.

refname =

Undocumented

update_index =

Undocumented

value =

Undocumented

value_type =

Undocumented