class documentation

class LFSPointer:

Constructor: LFSPointer(oid, size)

View In Hierarchy

Represents an LFS pointer file.

Class Method from_bytes Parse LFS pointer from bytes.
Method __init__ Initialize LFSPointer.
Method is_valid_oid Check if the OID is valid SHA256.
Method to_bytes Convert LFS pointer to bytes.
Instance Variable oid Undocumented
Instance Variable size Undocumented
def from_bytes(cls, data: bytes) -> LFSPointer | None:

Parse LFS pointer from bytes.

Returns None if data is not a valid LFS pointer.

def __init__(self, oid: str, size: int):

Initialize LFSPointer.

def is_valid_oid(self) -> bool:

Check if the OID is valid SHA256.

def to_bytes(self) -> bytes:

Convert LFS pointer to bytes.

oid =

Undocumented

size =

Undocumented