repo
stringlengths
7
55
path
stringlengths
4
127
func_name
stringlengths
1
88
original_string
stringlengths
75
19.8k
language
stringclasses
1 value
code
stringlengths
75
19.8k
code_tokens
list
docstring
stringlengths
3
17.3k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
87
242
partition
stringclasses
1 value
clalancette/pycdlib
pycdlib/rockridge.py
RockRidge._is_symlink
def _is_symlink(self): # type: () -> bool ''' Internal method to determine whether this Rock Ridge entry is a symlink. ''' return len(self.dr_entries.sl_records) > 0 or len(self.ce_entries.sl_records) > 0
python
def _is_symlink(self): # type: () -> bool ''' Internal method to determine whether this Rock Ridge entry is a symlink. ''' return len(self.dr_entries.sl_records) > 0 or len(self.ce_entries.sl_records) > 0
[ "def", "_is_symlink", "(", "self", ")", ":", "return", "len", "(", "self", ".", "dr_entries", ".", "sl_records", ")", ">", "0", "or", "len", "(", "self", ".", "ce_entries", ".", "sl_records", ")", ">", "0" ]
Internal method to determine whether this Rock Ridge entry is a symlink.
[ "Internal", "method", "to", "determine", "whether", "this", "Rock", "Ridge", "entry", "is", "a", "symlink", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/rockridge.py#L2833-L2838
train
clalancette/pycdlib
pycdlib/rockridge.py
RockRidge.child_link_extent
def child_link_extent(self): # type: () -> int ''' Get the extent of the child of this entry if it has one. Parameters: None. Returns: The logical block number of the child if it exists. ''' if not self._initialized: raise pycdlibexc...
python
def child_link_extent(self): # type: () -> int ''' Get the extent of the child of this entry if it has one. Parameters: None. Returns: The logical block number of the child if it exists. ''' if not self._initialized: raise pycdlibexc...
[ "def", "child_link_extent", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'Rock Ridge extension not yet initialized'", ")", "if", "self", ".", "dr_entries", ".", "cl_record", "is...
Get the extent of the child of this entry if it has one. Parameters: None. Returns: The logical block number of the child if it exists.
[ "Get", "the", "extent", "of", "the", "child", "of", "this", "entry", "if", "it", "has", "one", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/rockridge.py#L2929-L2947
train
clalancette/pycdlib
pycdlib/rockridge.py
RockRidge.parent_link_extent
def parent_link_extent(self): # type: () -> int ''' Get the extent of the parent of this entry if it has one. Parameters: None. Returns: The logical block number of the parent if it exists. ''' if not self._initialized: raise pycdlib...
python
def parent_link_extent(self): # type: () -> int ''' Get the extent of the parent of this entry if it has one. Parameters: None. Returns: The logical block number of the parent if it exists. ''' if not self._initialized: raise pycdlib...
[ "def", "parent_link_extent", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'Rock Ridge extension not yet initialized'", ")", "if", "self", ".", "dr_entries", ".", "pl_record", "i...
Get the extent of the parent of this entry if it has one. Parameters: None. Returns: The logical block number of the parent if it exists.
[ "Get", "the", "extent", "of", "the", "parent", "of", "this", "entry", "if", "it", "has", "one", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/rockridge.py#L2991-L3009
train
clalancette/pycdlib
pycdlib/rockridge.py
RockRidge.update_ce_block
def update_ce_block(self, block): # type: (RockRidgeContinuationBlock) -> None ''' Update the Continuation Entry block object used by this Rock Ridge Record. Parameters: block - The new block object. Returns: Nothing. ''' if not self._initialize...
python
def update_ce_block(self, block): # type: (RockRidgeContinuationBlock) -> None ''' Update the Continuation Entry block object used by this Rock Ridge Record. Parameters: block - The new block object. Returns: Nothing. ''' if not self._initialize...
[ "def", "update_ce_block", "(", "self", ",", "block", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'Rock Ridge extension not yet initialized'", ")", "self", ".", "ce_block", "=", "block" ]
Update the Continuation Entry block object used by this Rock Ridge Record. Parameters: block - The new block object. Returns: Nothing.
[ "Update", "the", "Continuation", "Entry", "block", "object", "used", "by", "this", "Rock", "Ridge", "Record", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/rockridge.py#L3027-L3040
train
clalancette/pycdlib
pycdlib/rockridge.py
RockRidgeContinuationBlock.track_entry
def track_entry(self, offset, length): # type: (int, int) -> None ''' Track an already allocated entry in this Rock Ridge Continuation Block. Parameters: offset - The offset at which to place the entry. length - The length of the entry to track. Returns: ...
python
def track_entry(self, offset, length): # type: (int, int) -> None ''' Track an already allocated entry in this Rock Ridge Continuation Block. Parameters: offset - The offset at which to place the entry. length - The length of the entry to track. Returns: ...
[ "def", "track_entry", "(", "self", ",", "offset", ",", "length", ")", ":", "newlen", "=", "offset", "+", "length", "-", "1", "for", "entry", "in", "self", ".", "_entries", ":", "thislen", "=", "entry", ".", "offset", "+", "entry", ".", "length", "-",...
Track an already allocated entry in this Rock Ridge Continuation Block. Parameters: offset - The offset at which to place the entry. length - The length of the entry to track. Returns: Nothing.
[ "Track", "an", "already", "allocated", "entry", "in", "this", "Rock", "Ridge", "Continuation", "Block", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/rockridge.py#L3125-L3149
train
clalancette/pycdlib
pycdlib/rockridge.py
RockRidgeContinuationBlock.add_entry
def add_entry(self, length): # type: (int) -> int ''' Add a new entry to this Rock Ridge Continuation Block. This method attempts to find a gap that fits the new length anywhere within this Continuation Block. If successful, it returns the offset at which it placed this...
python
def add_entry(self, length): # type: (int) -> int ''' Add a new entry to this Rock Ridge Continuation Block. This method attempts to find a gap that fits the new length anywhere within this Continuation Block. If successful, it returns the offset at which it placed this...
[ "def", "add_entry", "(", "self", ",", "length", ")", ":", "offset", "=", "-", "1", "for", "index", ",", "entry", "in", "enumerate", "(", "self", ".", "_entries", ")", ":", "if", "index", "==", "0", ":", "if", "entry", ".", "offset", "!=", "0", "a...
Add a new entry to this Rock Ridge Continuation Block. This method attempts to find a gap that fits the new length anywhere within this Continuation Block. If successful, it returns the offset at which it placed this entry. If unsuccessful, it returns None. Parameters: lengt...
[ "Add", "a", "new", "entry", "to", "this", "Rock", "Ridge", "Continuation", "Block", ".", "This", "method", "attempts", "to", "find", "a", "gap", "that", "fits", "the", "new", "length", "anywhere", "within", "this", "Continuation", "Block", ".", "If", "succ...
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/rockridge.py#L3151-L3197
train
clalancette/pycdlib
pycdlib/rockridge.py
RockRidgeContinuationBlock.remove_entry
def remove_entry(self, offset, length): # type: (int, int) -> None ''' Given an offset and length, find and remove the entry in this block that corresponds. Parameters: offset - The offset of the entry to look for. length - The length of the entry to look for. ...
python
def remove_entry(self, offset, length): # type: (int, int) -> None ''' Given an offset and length, find and remove the entry in this block that corresponds. Parameters: offset - The offset of the entry to look for. length - The length of the entry to look for. ...
[ "def", "remove_entry", "(", "self", ",", "offset", ",", "length", ")", ":", "for", "index", ",", "entry", "in", "enumerate", "(", "self", ".", "_entries", ")", ":", "if", "entry", ".", "offset", "==", "offset", "and", "entry", ".", "length", "==", "l...
Given an offset and length, find and remove the entry in this block that corresponds. Parameters: offset - The offset of the entry to look for. length - The length of the entry to look for. Returns: Nothing.
[ "Given", "an", "offset", "and", "length", "find", "and", "remove", "the", "entry", "in", "this", "block", "that", "corresponds", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/rockridge.py#L3199-L3216
train
clalancette/pycdlib
pycdlib/udf.py
crc_ccitt
def crc_ccitt(data): # type: (bytes) -> int ''' Calculate the CRC over a range of bytes using the CCITT polynomial. Parameters: data - The array of bytes to calculate the CRC over. Returns: The CCITT CRC of the data. ''' crc = 0 if not have_py_3: for x in data: ...
python
def crc_ccitt(data): # type: (bytes) -> int ''' Calculate the CRC over a range of bytes using the CCITT polynomial. Parameters: data - The array of bytes to calculate the CRC over. Returns: The CCITT CRC of the data. ''' crc = 0 if not have_py_3: for x in data: ...
[ "def", "crc_ccitt", "(", "data", ")", ":", "crc", "=", "0", "if", "not", "have_py_3", ":", "for", "x", "in", "data", ":", "crc", "=", "crc_ccitt_table", "[", "ord", "(", "x", ")", "^", "(", "(", "crc", ">>", "8", ")", "&", "0xFF", ")", "]", "...
Calculate the CRC over a range of bytes using the CCITT polynomial. Parameters: data - The array of bytes to calculate the CRC over. Returns: The CCITT CRC of the data.
[ "Calculate", "the", "CRC", "over", "a", "range", "of", "bytes", "using", "the", "CCITT", "polynomial", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L93-L112
train
clalancette/pycdlib
pycdlib/udf.py
_ostaunicode
def _ostaunicode(src): # type: (str) -> bytes ''' Internal function to create an OSTA byte string from a source string. ''' if have_py_3: bytename = src else: bytename = src.decode('utf-8') # type: ignore try: enc = bytename.encode('latin-1') encbyte = b'\x0...
python
def _ostaunicode(src): # type: (str) -> bytes ''' Internal function to create an OSTA byte string from a source string. ''' if have_py_3: bytename = src else: bytename = src.decode('utf-8') # type: ignore try: enc = bytename.encode('latin-1') encbyte = b'\x0...
[ "def", "_ostaunicode", "(", "src", ")", ":", "if", "have_py_3", ":", "bytename", "=", "src", "else", ":", "bytename", "=", "src", ".", "decode", "(", "'utf-8'", ")", "try", ":", "enc", "=", "bytename", ".", "encode", "(", "'latin-1'", ")", "encbyte", ...
Internal function to create an OSTA byte string from a source string.
[ "Internal", "function", "to", "create", "an", "OSTA", "byte", "string", "from", "a", "source", "string", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L115-L131
train
clalancette/pycdlib
pycdlib/udf.py
_ostaunicode_zero_pad
def _ostaunicode_zero_pad(src, fulllen): # type: (str, int) -> bytes ''' Internal function to create a zero-padded Identifier byte string from a source string. Parameters: src - The src string to start from. fulllen - The padded out length of the result. Returns: A full identifie...
python
def _ostaunicode_zero_pad(src, fulllen): # type: (str, int) -> bytes ''' Internal function to create a zero-padded Identifier byte string from a source string. Parameters: src - The src string to start from. fulllen - The padded out length of the result. Returns: A full identifie...
[ "def", "_ostaunicode_zero_pad", "(", "src", ",", "fulllen", ")", ":", "byte_src", "=", "_ostaunicode", "(", "src", ")", "return", "byte_src", "+", "b'\\x00'", "*", "(", "fulllen", "-", "1", "-", "len", "(", "byte_src", ")", ")", "+", "(", "struct", "."...
Internal function to create a zero-padded Identifier byte string from a source string. Parameters: src - The src string to start from. fulllen - The padded out length of the result. Returns: A full identifier byte string containing the source string.
[ "Internal", "function", "to", "create", "a", "zero", "-", "padded", "Identifier", "byte", "string", "from", "a", "source", "string", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L134-L147
train
clalancette/pycdlib
pycdlib/udf.py
_compute_csum
def _compute_csum(data): # type: (bytes) -> int ''' A method to compute a simple checksum over the given data. Parameters: data - The data to compute the checksum over. Returns: The checksum. ''' def identity(x): # type: (int) -> int ''' The identity functi...
python
def _compute_csum(data): # type: (bytes) -> int ''' A method to compute a simple checksum over the given data. Parameters: data - The data to compute the checksum over. Returns: The checksum. ''' def identity(x): # type: (int) -> int ''' The identity functi...
[ "def", "_compute_csum", "(", "data", ")", ":", "def", "identity", "(", "x", ")", ":", "return", "x", "if", "isinstance", "(", "data", ",", "str", ")", ":", "myord", "=", "ord", "elif", "isinstance", "(", "data", ",", "bytes", ")", ":", "myord", "="...
A method to compute a simple checksum over the given data. Parameters: data - The data to compute the checksum over. Returns: The checksum.
[ "A", "method", "to", "compute", "a", "simple", "checksum", "over", "the", "given", "data", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L486-L516
train
clalancette/pycdlib
pycdlib/udf.py
symlink_to_bytes
def symlink_to_bytes(symlink_target): # type: (str) -> bytes ''' A function to generate UDF symlink data from a Unix-like path. Parameters: symlink_target - The Unix-like path that is the symlink. Returns: The UDF data corresponding to the symlink. ''' symlink_data = bytearray() ...
python
def symlink_to_bytes(symlink_target): # type: (str) -> bytes ''' A function to generate UDF symlink data from a Unix-like path. Parameters: symlink_target - The Unix-like path that is the symlink. Returns: The UDF data corresponding to the symlink. ''' symlink_data = bytearray() ...
[ "def", "symlink_to_bytes", "(", "symlink_target", ")", ":", "symlink_data", "=", "bytearray", "(", ")", "for", "comp", "in", "symlink_target", ".", "split", "(", "'/'", ")", ":", "if", "comp", "==", "''", ":", "symlink_data", ".", "extend", "(", "b'\\x02\\...
A function to generate UDF symlink data from a Unix-like path. Parameters: symlink_target - The Unix-like path that is the symlink. Returns: The UDF data corresponding to the symlink.
[ "A", "function", "to", "generate", "UDF", "symlink", "data", "from", "a", "Unix", "-", "like", "path", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3554-L3582
train
clalancette/pycdlib
pycdlib/udf.py
BEAVolumeStructure.set_extent_location
def set_extent_location(self, extent): # type: (int) -> None ''' A method to set the new location for this UDF BEA Volume Structure. Parameters: extent - The new extent location to set for this UDF BEA Volume Structure. Returns: Nothing. ''' if ...
python
def set_extent_location(self, extent): # type: (int) -> None ''' A method to set the new location for this UDF BEA Volume Structure. Parameters: extent - The new extent location to set for this UDF BEA Volume Structure. Returns: Nothing. ''' if ...
[ "def", "set_extent_location", "(", "self", ",", "extent", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'This Volume Descriptor is not yet initialized'", ")", "self", ".", "new_extent_loc", "="...
A method to set the new location for this UDF BEA Volume Structure. Parameters: extent - The new extent location to set for this UDF BEA Volume Structure. Returns: Nothing.
[ "A", "method", "to", "set", "the", "new", "location", "for", "this", "UDF", "BEA", "Volume", "Structure", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L253-L265
train
clalancette/pycdlib
pycdlib/udf.py
NSRVolumeStructure.parse
def parse(self, data, extent): # type: (bytes, int) -> None ''' Parse the passed in data into a UDF NSR Volume Structure. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. Returns: Nothing. ''' ...
python
def parse(self, data, extent): # type: (bytes, int) -> None ''' Parse the passed in data into a UDF NSR Volume Structure. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. Returns: Nothing. ''' ...
[ "def", "parse", "(", "self", ",", "data", ",", "extent", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF NSR Volume Structure already initialized'", ")", "(", "structure_type", ",", "self", "."...
Parse the passed in data into a UDF NSR Volume Structure. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. Returns: Nothing.
[ "Parse", "the", "passed", "in", "data", "into", "a", "UDF", "NSR", "Volume", "Structure", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L282-L310
train
clalancette/pycdlib
pycdlib/udf.py
NSRVolumeStructure.record
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF NSR Volume Structure. Parameters: None. Returns: A string representing this UDF BEA Volume Strucutre. ''' if not self._initialized: ...
python
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF NSR Volume Structure. Parameters: None. Returns: A string representing this UDF BEA Volume Strucutre. ''' if not self._initialized: ...
[ "def", "record", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF NSR Volume Structure not initialized'", ")", "return", "struct", ".", "pack", "(", "self", ".", "FMT", ","...
A method to generate the string representing this UDF NSR Volume Structure. Parameters: None. Returns: A string representing this UDF BEA Volume Strucutre.
[ "A", "method", "to", "generate", "the", "string", "representing", "this", "UDF", "NSR", "Volume", "Structure", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L312-L325
train
clalancette/pycdlib
pycdlib/udf.py
NSRVolumeStructure.new
def new(self, version): # type: () -> None ''' A method to create a new UDF NSR Volume Structure. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF NSR Volume Structure alr...
python
def new(self, version): # type: () -> None ''' A method to create a new UDF NSR Volume Structure. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF NSR Volume Structure alr...
[ "def", "new", "(", "self", ",", "version", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF NSR Volume Structure already initialized'", ")", "if", "version", "==", "2", ":", "self", ".", "stan...
A method to create a new UDF NSR Volume Structure. Parameters: None. Returns: Nothing.
[ "A", "method", "to", "create", "a", "new", "UDF", "NSR", "Volume", "Structure", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L327-L347
train
clalancette/pycdlib
pycdlib/udf.py
NSRVolumeStructure.extent_location
def extent_location(self): # type: () -> int ''' A method to get the extent location of this UDF NSR Volume Structure. Parameters: None. Returns: Integer extent location of this UDF NSR Volume Structure. ''' if not self._initialized: ...
python
def extent_location(self): # type: () -> int ''' A method to get the extent location of this UDF NSR Volume Structure. Parameters: None. Returns: Integer extent location of this UDF NSR Volume Structure. ''' if not self._initialized: ...
[ "def", "extent_location", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF NSR Volume Structure not yet initialized'", ")", "if", "self", ".", "new_extent_loc", "<", "0", ":", ...
A method to get the extent location of this UDF NSR Volume Structure. Parameters: None. Returns: Integer extent location of this UDF NSR Volume Structure.
[ "A", "method", "to", "get", "the", "extent", "location", "of", "this", "UDF", "NSR", "Volume", "Structure", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L349-L364
train
clalancette/pycdlib
pycdlib/udf.py
UDFTag.parse
def parse(self, data, extent): # type: (bytes, int) -> None ''' Parse the passed in data into a UDF Descriptor tag. Parameters: data - The data to parse. extent - The extent to compare against for the tag location. Returns: Nothing. ''' ...
python
def parse(self, data, extent): # type: (bytes, int) -> None ''' Parse the passed in data into a UDF Descriptor tag. Parameters: data - The data to parse. extent - The extent to compare against for the tag location. Returns: Nothing. ''' ...
[ "def", "parse", "(", "self", ",", "data", ",", "extent", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Tag already initialized'", ")", "(", "self", ".", "tag_ident", ",", "self", ".", "...
Parse the passed in data into a UDF Descriptor tag. Parameters: data - The data to parse. extent - The extent to compare against for the tag location. Returns: Nothing.
[ "Parse", "the", "passed", "in", "data", "into", "a", "UDF", "Descriptor", "tag", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L533-L576
train
clalancette/pycdlib
pycdlib/udf.py
UDFTag.record
def record(self, crc_bytes): # type: (bytes) -> bytes ''' A method to generate the string representing this UDF Descriptor Tag. Parameters: crc_bytes - The string to compute the CRC over. Returns: A string representing this UDF Descriptor Tag. ''' ...
python
def record(self, crc_bytes): # type: (bytes) -> bytes ''' A method to generate the string representing this UDF Descriptor Tag. Parameters: crc_bytes - The string to compute the CRC over. Returns: A string representing this UDF Descriptor Tag. ''' ...
[ "def", "record", "(", "self", ",", "crc_bytes", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Descriptor Tag not initialized'", ")", "crc_byte_len", "=", "len", "(", "crc_bytes", ")", ...
A method to generate the string representing this UDF Descriptor Tag. Parameters: crc_bytes - The string to compute the CRC over. Returns: A string representing this UDF Descriptor Tag.
[ "A", "method", "to", "generate", "the", "string", "representing", "this", "UDF", "Descriptor", "Tag", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L578-L605
train
clalancette/pycdlib
pycdlib/udf.py
UDFTag.new
def new(self, tag_ident, tag_serial=0): # type: (int, int) -> None ''' A method to create a new UDF Descriptor Tag. Parameters: tag_ident - The tag identifier number for this tag. tag_serial - The tag serial number for this tag. Returns: Nothing ...
python
def new(self, tag_ident, tag_serial=0): # type: (int, int) -> None ''' A method to create a new UDF Descriptor Tag. Parameters: tag_ident - The tag identifier number for this tag. tag_serial - The tag serial number for this tag. Returns: Nothing ...
[ "def", "new", "(", "self", ",", "tag_ident", ",", "tag_serial", "=", "0", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Tag already initialized'", ")", "self", ".", "tag_ident", "=", "tag...
A method to create a new UDF Descriptor Tag. Parameters: tag_ident - The tag identifier number for this tag. tag_serial - The tag serial number for this tag. Returns: Nothing
[ "A", "method", "to", "create", "a", "new", "UDF", "Descriptor", "Tag", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L607-L626
train
clalancette/pycdlib
pycdlib/udf.py
UDFAnchorVolumeStructure.parse
def parse(self, data, extent, desc_tag): # type: (bytes, int, UDFTag) -> None ''' Parse the passed in data into a UDF Anchor Volume Structure. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A UDFTa...
python
def parse(self, data, extent, desc_tag): # type: (bytes, int, UDFTag) -> None ''' Parse the passed in data into a UDF Anchor Volume Structure. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A UDFTa...
[ "def", "parse", "(", "self", ",", "data", ",", "extent", ",", "desc_tag", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'Anchor Volume Structure already initialized'", ")", "(", "tag_unused", ",",...
Parse the passed in data into a UDF Anchor Volume Structure. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A UDFTag object that represents the Descriptor Tag. Returns: Nothing.
[ "Parse", "the", "passed", "in", "data", "into", "a", "UDF", "Anchor", "Volume", "Structure", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L644-L667
train
clalancette/pycdlib
pycdlib/udf.py
UDFAnchorVolumeStructure.record
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Anchor Volume Structure. Parameters: None. Returns: A string representing this UDF Anchor Volume Structure. ''' if not self._initialized: ...
python
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Anchor Volume Structure. Parameters: None. Returns: A string representing this UDF Anchor Volume Structure. ''' if not self._initialized: ...
[ "def", "record", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Anchor Volume Descriptor not initialized'", ")", "rec", "=", "struct", ".", "pack", "(", "self", ".", "FMT...
A method to generate the string representing this UDF Anchor Volume Structure. Parameters: None. Returns: A string representing this UDF Anchor Volume Structure.
[ "A", "method", "to", "generate", "the", "string", "representing", "this", "UDF", "Anchor", "Volume", "Structure", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L669-L687
train
clalancette/pycdlib
pycdlib/udf.py
UDFAnchorVolumeStructure.new
def new(self): # type: () -> None ''' A method to create a new UDF Anchor Volume Structure. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Anchor Volume Structure alread...
python
def new(self): # type: () -> None ''' A method to create a new UDF Anchor Volume Structure. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Anchor Volume Structure alread...
[ "def", "new", "(", "self", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Anchor Volume Structure already initialized'", ")", "self", ".", "desc_tag", "=", "UDFTag", "(", ")", "self", ".", "...
A method to create a new UDF Anchor Volume Structure. Parameters: None. Returns: Nothing.
[ "A", "method", "to", "create", "a", "new", "UDF", "Anchor", "Volume", "Structure", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L706-L726
train
clalancette/pycdlib
pycdlib/udf.py
UDFAnchorVolumeStructure.set_extent_location
def set_extent_location(self, new_location, main_vd_extent, reserve_vd_extent): # type: (int, int, int) -> None ''' A method to set a new location for this Anchor Volume Structure. Parameters: new_location - The new extent that this Anchor Volume Structure should be located at....
python
def set_extent_location(self, new_location, main_vd_extent, reserve_vd_extent): # type: (int, int, int) -> None ''' A method to set a new location for this Anchor Volume Structure. Parameters: new_location - The new extent that this Anchor Volume Structure should be located at....
[ "def", "set_extent_location", "(", "self", ",", "new_location", ",", "main_vd_extent", ",", "reserve_vd_extent", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Anchor Volume Structure not yet...
A method to set a new location for this Anchor Volume Structure. Parameters: new_location - The new extent that this Anchor Volume Structure should be located at. main_vd_extent - The extent containing the main Volume Descriptors. reserve_vd_extent - The extent containing the reserve...
[ "A", "method", "to", "set", "a", "new", "location", "for", "this", "Anchor", "Volume", "Structure", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L728-L746
train
clalancette/pycdlib
pycdlib/udf.py
UDFTimestamp.parse
def parse(self, data): # type: (bytes) -> None ''' Parse the passed in data into a UDF Timestamp. Parameters: data - The data to parse. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Time...
python
def parse(self, data): # type: (bytes) -> None ''' Parse the passed in data into a UDF Timestamp. Parameters: data - The data to parse. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Time...
[ "def", "parse", "(", "self", ",", "data", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Timestamp already initialized'", ")", "(", "tz", ",", "timetype", ",", "self", ".", "year", ",", ...
Parse the passed in data into a UDF Timestamp. Parameters: data - The data to parse. Returns: Nothing.
[ "Parse", "the", "passed", "in", "data", "into", "a", "UDF", "Timestamp", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L763-L808
train
clalancette/pycdlib
pycdlib/udf.py
UDFTimestamp.record
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Timestamp. Parameters: None. Returns: A string representing this UDF Timestamp. ''' if not self._initialized: raise pycdlibexception.PyCd...
python
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Timestamp. Parameters: None. Returns: A string representing this UDF Timestamp. ''' if not self._initialized: raise pycdlibexception.PyCd...
[ "def", "record", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Timestamp not initialized'", ")", "tmp", "=", "(", "(", "1", "<<", "16", ")", "-", "1", ")", "&", ...
A method to generate the string representing this UDF Timestamp. Parameters: None. Returns: A string representing this UDF Timestamp.
[ "A", "method", "to", "generate", "the", "string", "representing", "this", "UDF", "Timestamp", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L810-L830
train
clalancette/pycdlib
pycdlib/udf.py
UDFTimestamp.new
def new(self): # type: () -> None ''' A method to create a new UDF Timestamp. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Timestamp already initialized') tm ...
python
def new(self): # type: () -> None ''' A method to create a new UDF Timestamp. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Timestamp already initialized') tm ...
[ "def", "new", "(", "self", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Timestamp already initialized'", ")", "tm", "=", "time", ".", "time", "(", ")", "local", "=", "time", ".", "loca...
A method to create a new UDF Timestamp. Parameters: None. Returns: Nothing.
[ "A", "method", "to", "create", "a", "new", "UDF", "Timestamp", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L832-L862
train
clalancette/pycdlib
pycdlib/udf.py
UDFEntityID.parse
def parse(self, data): # type: (bytes) -> None ''' Parse the passed in data into a UDF Entity ID. Parameters: data - The data to parse. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Enti...
python
def parse(self, data): # type: (bytes) -> None ''' Parse the passed in data into a UDF Entity ID. Parameters: data - The data to parse. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Enti...
[ "def", "parse", "(", "self", ",", "data", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Entity ID already initialized'", ")", "(", "self", ".", "flags", ",", "self", ".", "identifier", ",...
Parse the passed in data into a UDF Entity ID. Parameters: data - The data to parse. Returns: Nothing.
[ "Parse", "the", "passed", "in", "data", "into", "a", "UDF", "Entity", "ID", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L877-L892
train
clalancette/pycdlib
pycdlib/udf.py
UDFEntityID.record
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Entity ID. Parameters: None. Returns: A string representing this UDF Entity ID. ''' if not self._initialized: raise pycdlibexception.PyCd...
python
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Entity ID. Parameters: None. Returns: A string representing this UDF Entity ID. ''' if not self._initialized: raise pycdlibexception.PyCd...
[ "def", "record", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Entity ID not initialized'", ")", "return", "struct", ".", "pack", "(", "self", ".", "FMT", ",", "self",...
A method to generate the string representing this UDF Entity ID. Parameters: None. Returns: A string representing this UDF Entity ID.
[ "A", "method", "to", "generate", "the", "string", "representing", "this", "UDF", "Entity", "ID", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L894-L907
train
clalancette/pycdlib
pycdlib/udf.py
UDFEntityID.new
def new(self, flags=0, identifier=b'', suffix=b''): # type: (int, bytes, bytes) -> None ''' A method to create a new UDF Entity ID. Parameters: flags - The flags to set for this Entity ID. identifier - The identifier to set for this Entity ID. suffix - The suf...
python
def new(self, flags=0, identifier=b'', suffix=b''): # type: (int, bytes, bytes) -> None ''' A method to create a new UDF Entity ID. Parameters: flags - The flags to set for this Entity ID. identifier - The identifier to set for this Entity ID. suffix - The suf...
[ "def", "new", "(", "self", ",", "flags", "=", "0", ",", "identifier", "=", "b''", ",", "suffix", "=", "b''", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Entity ID already initialized'",...
A method to create a new UDF Entity ID. Parameters: flags - The flags to set for this Entity ID. identifier - The identifier to set for this Entity ID. suffix - The suffix to set for this Entity ID. None. Returns: Nothing.
[ "A", "method", "to", "create", "a", "new", "UDF", "Entity", "ID", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L909-L935
train
clalancette/pycdlib
pycdlib/udf.py
UDFPrimaryVolumeDescriptor.parse
def parse(self, data, extent, desc_tag): # type: (bytes, int, UDFTag) -> None ''' Parse the passed in data into a UDF Primary Volume Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A UDF...
python
def parse(self, data, extent, desc_tag): # type: (bytes, int, UDFTag) -> None ''' Parse the passed in data into a UDF Primary Volume Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A UDF...
[ "def", "parse", "(", "self", ",", "data", ",", "extent", ",", "desc_tag", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Primary Volume Descriptor already initialized'", ")", "(", "tag_unused", ...
Parse the passed in data into a UDF Primary Volume Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A UDFTag object that represents the Descriptor Tag. Returns: Nothing.
[ "Parse", "the", "passed", "in", "data", "into", "a", "UDF", "Primary", "Volume", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L957-L1011
train
clalancette/pycdlib
pycdlib/udf.py
UDFPrimaryVolumeDescriptor.record
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Primary Volume Descriptor. Parameters: None. Returns: A string representing this UDF Primary Volume Descriptor. ''' if not self._initialized:...
python
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Primary Volume Descriptor. Parameters: None. Returns: A string representing this UDF Primary Volume Descriptor. ''' if not self._initialized:...
[ "def", "record", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Primary Volume Descriptor not initialized'", ")", "rec", "=", "struct", ".", "pack", "(", "self", ".", "FM...
A method to generate the string representing this UDF Primary Volume Descriptor. Parameters: None. Returns: A string representing this UDF Primary Volume Descriptor.
[ "A", "method", "to", "generate", "the", "string", "representing", "this", "UDF", "Primary", "Volume", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1013-L1037
train
clalancette/pycdlib
pycdlib/udf.py
UDFPrimaryVolumeDescriptor.new
def new(self): # type: () -> None ''' A method to create a new UDF Primary Volume Descriptor. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Primary Volume Descriptor al...
python
def new(self): # type: () -> None ''' A method to create a new UDF Primary Volume Descriptor. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Primary Volume Descriptor al...
[ "def", "new", "(", "self", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Primary Volume Descriptor already initialized'", ")", "self", ".", "desc_tag", "=", "UDFTag", "(", ")", "self", ".", ...
A method to create a new UDF Primary Volume Descriptor. Parameters: None. Returns: Nothing.
[ "A", "method", "to", "create", "a", "new", "UDF", "Primary", "Volume", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1056-L1098
train
clalancette/pycdlib
pycdlib/udf.py
UDFImplementationUseVolumeDescriptorImplementationUse.parse
def parse(self, data): # type: (bytes) -> None ''' Parse the passed in data into a UDF Implementation Use Volume Descriptor Implementation Use field. Parameters: data - The data to parse. Returns: Nothing. ''' if self._initialized: ...
python
def parse(self, data): # type: (bytes) -> None ''' Parse the passed in data into a UDF Implementation Use Volume Descriptor Implementation Use field. Parameters: data - The data to parse. Returns: Nothing. ''' if self._initialized: ...
[ "def", "parse", "(", "self", ",", "data", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Implementation Use Volume Descriptor Implementation Use field already initialized'", ")", "(", "self", ".", "...
Parse the passed in data into a UDF Implementation Use Volume Descriptor Implementation Use field. Parameters: data - The data to parse. Returns: Nothing.
[ "Parse", "the", "passed", "in", "data", "into", "a", "UDF", "Implementation", "Use", "Volume", "Descriptor", "Implementation", "Use", "field", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1130-L1151
train
clalancette/pycdlib
pycdlib/udf.py
UDFImplementationUseVolumeDescriptorImplementationUse.record
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Implementation Use Volume Descriptor Implementation Use field. Parameters: None. Returns: A string representing this UDF Implementation Use Volume Descriptor...
python
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Implementation Use Volume Descriptor Implementation Use field. Parameters: None. Returns: A string representing this UDF Implementation Use Volume Descriptor...
[ "def", "record", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Implementation Use Volume Descriptor Implementation Use field not initialized'", ")", "return", "struct", ".", "pack...
A method to generate the string representing this UDF Implementation Use Volume Descriptor Implementation Use field. Parameters: None. Returns: A string representing this UDF Implementation Use Volume Descriptor.
[ "A", "method", "to", "generate", "the", "string", "representing", "this", "UDF", "Implementation", "Use", "Volume", "Descriptor", "Implementation", "Use", "field", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1153-L1169
train
clalancette/pycdlib
pycdlib/udf.py
UDFImplementationUseVolumeDescriptorImplementationUse.new
def new(self): # type: () -> None ''' A method to create a new UDF Implementation Use Volume Descriptor Implementation Use field. Parameters: None: Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalErr...
python
def new(self): # type: () -> None ''' A method to create a new UDF Implementation Use Volume Descriptor Implementation Use field. Parameters: None: Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalErr...
[ "def", "new", "(", "self", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Implementation Use Volume Descriptor Implementation Use field already initialized'", ")", "self", ".", "char_set", "=", "_unic...
A method to create a new UDF Implementation Use Volume Descriptor Implementation Use field. Parameters: None: Returns: Nothing.
[ "A", "method", "to", "create", "a", "new", "UDF", "Implementation", "Use", "Volume", "Descriptor", "Implementation", "Use", "field", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1171-L1193
train
clalancette/pycdlib
pycdlib/udf.py
UDFImplementationUseVolumeDescriptor.parse
def parse(self, data, extent, desc_tag): # type: (bytes, int, UDFTag) -> None ''' Parse the passed in data into a UDF Implementation Use Volume Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. ...
python
def parse(self, data, extent, desc_tag): # type: (bytes, int, UDFTag) -> None ''' Parse the passed in data into a UDF Implementation Use Volume Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. ...
[ "def", "parse", "(", "self", ",", "data", ",", "extent", ",", "desc_tag", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Implementation Use Volume Descriptor already initialized'", ")", "(", "ta...
Parse the passed in data into a UDF Implementation Use Volume Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A UDFTag object that represents the Descriptor Tag. Returns: Nothing.
[ "Parse", "the", "passed", "in", "data", "into", "a", "UDF", "Implementation", "Use", "Volume", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1210-L1241
train
clalancette/pycdlib
pycdlib/udf.py
UDFImplementationUseVolumeDescriptor.new
def new(self): # type: () -> None ''' A method to create a new UDF Implementation Use Volume Descriptor. Parameters: None: Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Implementation Us...
python
def new(self): # type: () -> None ''' A method to create a new UDF Implementation Use Volume Descriptor. Parameters: None: Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Implementation Us...
[ "def", "new", "(", "self", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Implementation Use Volume Descriptor already initialized'", ")", "self", ".", "desc_tag", "=", "UDFTag", "(", ")", "self...
A method to create a new UDF Implementation Use Volume Descriptor. Parameters: None: Returns: Nothing.
[ "A", "method", "to", "create", "a", "new", "UDF", "Implementation", "Use", "Volume", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1281-L1305
train
clalancette/pycdlib
pycdlib/udf.py
UDFPartitionHeaderDescriptor.parse
def parse(self, data): # type: (bytes) -> None ''' Parse the passed in data into a UDF Partition Header Descriptor. Parameters: data - The data to parse. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInter...
python
def parse(self, data): # type: (bytes) -> None ''' Parse the passed in data into a UDF Partition Header Descriptor. Parameters: data - The data to parse. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInter...
[ "def", "parse", "(", "self", ",", "data", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Partition Header Descriptor already initialized'", ")", "(", "unalloc_table_length", ",", "unalloc_table_pos"...
Parse the passed in data into a UDF Partition Header Descriptor. Parameters: data - The data to parse. Returns: Nothing.
[ "Parse", "the", "passed", "in", "data", "into", "a", "UDF", "Partition", "Header", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1336-L1375
train
clalancette/pycdlib
pycdlib/udf.py
UDFPartitionVolumeDescriptor.parse
def parse(self, data, extent, desc_tag): # type: (bytes, int, UDFTag) -> None ''' Parse the passed in data into a UDF Partition Volume Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A U...
python
def parse(self, data, extent, desc_tag): # type: (bytes, int, UDFTag) -> None ''' Parse the passed in data into a UDF Partition Volume Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A U...
[ "def", "parse", "(", "self", ",", "data", ",", "extent", ",", "desc_tag", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Partition Volume Descriptor already initialized'", ")", "(", "tag_unused"...
Parse the passed in data into a UDF Partition Volume Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A UDFTag object that represents the Descriptor Tag. Returns: Nothing.
[ "Parse", "the", "passed", "in", "data", "into", "a", "UDF", "Partition", "Volume", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1425-L1460
train
clalancette/pycdlib
pycdlib/udf.py
UDFPartitionVolumeDescriptor.record
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Partition Volume Descriptor. Parameters: None. Returns: A string representing this UDF Partition Volume Descriptor. ''' if not self._initiali...
python
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Partition Volume Descriptor. Parameters: None. Returns: A string representing this UDF Partition Volume Descriptor. ''' if not self._initiali...
[ "def", "record", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Partition Volume Descriptor not initialized'", ")", "rec", "=", "struct", ".", "pack", "(", "self", ".", "...
A method to generate the string representing this UDF Partition Volume Descriptor. Parameters: None. Returns: A string representing this UDF Partition Volume Descriptor.
[ "A", "method", "to", "generate", "the", "string", "representing", "this", "UDF", "Partition", "Volume", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1462-L1483
train
clalancette/pycdlib
pycdlib/udf.py
UDFPartitionVolumeDescriptor.new
def new(self): # type: () -> None ''' A method to create a new UDF Partition Volume Descriptor. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Partition Volume Descripto...
python
def new(self): # type: () -> None ''' A method to create a new UDF Partition Volume Descriptor. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Partition Volume Descripto...
[ "def", "new", "(", "self", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Partition Volume Descriptor already initialized'", ")", "self", ".", "desc_tag", "=", "UDFTag", "(", ")", "self", ".",...
A method to create a new UDF Partition Volume Descriptor. Parameters: None. Returns: Nothing.
[ "A", "method", "to", "create", "a", "new", "UDF", "Partition", "Volume", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1503-L1538
train
clalancette/pycdlib
pycdlib/udf.py
UDFPartitionVolumeDescriptor.set_start_location
def set_start_location(self, new_location): # type: (int) -> None ''' A method to set the location of the start of the partition. Parameters: new_location - The new extent the UDF partition should start at. Returns: Nothing. ''' if not self._ini...
python
def set_start_location(self, new_location): # type: (int) -> None ''' A method to set the location of the start of the partition. Parameters: new_location - The new extent the UDF partition should start at. Returns: Nothing. ''' if not self._ini...
[ "def", "set_start_location", "(", "self", ",", "new_location", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Partition Volume Descriptor not initialized'", ")", "self", ".", "part_start_loca...
A method to set the location of the start of the partition. Parameters: new_location - The new extent the UDF partition should start at. Returns: Nothing.
[ "A", "method", "to", "set", "the", "location", "of", "the", "start", "of", "the", "partition", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1555-L1567
train
clalancette/pycdlib
pycdlib/udf.py
UDFPartitionMap.parse
def parse(self, data): # type: (bytes) -> None ''' Parse the passed in data into a UDF Partition Map. Parameters: data - The data to parse. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF ...
python
def parse(self, data): # type: (bytes) -> None ''' Parse the passed in data into a UDF Partition Map. Parameters: data - The data to parse. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF ...
[ "def", "parse", "(", "self", ",", "data", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Partition Map already initialized'", ")", "(", "map_type", ",", "map_length", ",", "vol_seqnum", ",", ...
Parse the passed in data into a UDF Partition Map. Parameters: data - The data to parse. Returns: Nothing.
[ "Parse", "the", "passed", "in", "data", "into", "a", "UDF", "Partition", "Map", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1582-L1605
train
clalancette/pycdlib
pycdlib/udf.py
UDFPartitionMap.new
def new(self): # type: () -> None ''' A method to create a new UDF Partition Map. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Partition Map already initialized') ...
python
def new(self): # type: () -> None ''' A method to create a new UDF Partition Map. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Partition Map already initialized') ...
[ "def", "new", "(", "self", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Partition Map already initialized'", ")", "self", ".", "part_num", "=", "0", "self", ".", "_initialized", "=", "True...
A method to create a new UDF Partition Map. Parameters: None. Returns: Nothing.
[ "A", "method", "to", "create", "a", "new", "UDF", "Partition", "Map", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1622-L1637
train
clalancette/pycdlib
pycdlib/udf.py
UDFLongAD.parse
def parse(self, data): # type: (bytes) -> None ''' Parse the passed in data into a UDF Long AD. Parameters: data - The data to parse. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Long A...
python
def parse(self, data): # type: (bytes) -> None ''' Parse the passed in data into a UDF Long AD. Parameters: data - The data to parse. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Long A...
[ "def", "parse", "(", "self", ",", "data", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Long Allocation descriptor already initialized'", ")", "(", "self", ".", "extent_length", ",", "self", ...
Parse the passed in data into a UDF Long AD. Parameters: data - The data to parse. Returns: Nothing.
[ "Parse", "the", "passed", "in", "data", "into", "a", "UDF", "Long", "AD", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1653-L1668
train
clalancette/pycdlib
pycdlib/udf.py
UDFLongAD.record
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Long AD. Parameters: None. Returns: A string representing this UDF Long AD. ''' if not self._initialized: raise pycdlibexception.PyCdlibI...
python
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Long AD. Parameters: None. Returns: A string representing this UDF Long AD. ''' if not self._initialized: raise pycdlibexception.PyCdlibI...
[ "def", "record", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Long AD not initialized'", ")", "return", "struct", ".", "pack", "(", "self", ".", "FMT", ",", "self", ...
A method to generate the string representing this UDF Long AD. Parameters: None. Returns: A string representing this UDF Long AD.
[ "A", "method", "to", "generate", "the", "string", "representing", "this", "UDF", "Long", "AD", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1670-L1684
train
clalancette/pycdlib
pycdlib/udf.py
UDFLongAD.new
def new(self, length, blocknum): # type: (int, int) -> None ''' A method to create a new UDF Long AD. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Long AD already init...
python
def new(self, length, blocknum): # type: (int, int) -> None ''' A method to create a new UDF Long AD. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Long AD already init...
[ "def", "new", "(", "self", ",", "length", ",", "blocknum", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Long AD already initialized'", ")", "self", ".", "extent_length", "=", "length", "se...
A method to create a new UDF Long AD. Parameters: None. Returns: Nothing.
[ "A", "method", "to", "create", "a", "new", "UDF", "Long", "AD", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1686-L1704
train
clalancette/pycdlib
pycdlib/udf.py
UDFLongAD.set_extent_location
def set_extent_location(self, new_location, tag_location): # type: (int, int) -> None ''' A method to set the location fields of this UDF Long AD. Parameters: new_location - The new relative extent that this UDF Long AD references. tag_location - The new absolute exten...
python
def set_extent_location(self, new_location, tag_location): # type: (int, int) -> None ''' A method to set the location fields of this UDF Long AD. Parameters: new_location - The new relative extent that this UDF Long AD references. tag_location - The new absolute exten...
[ "def", "set_extent_location", "(", "self", ",", "new_location", ",", "tag_location", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Long AD not initialized'", ")", "self", ".", "log_block...
A method to set the location fields of this UDF Long AD. Parameters: new_location - The new relative extent that this UDF Long AD references. tag_location - The new absolute extent that this UDF Long AD references. Returns: Nothing.
[ "A", "method", "to", "set", "the", "location", "fields", "of", "this", "UDF", "Long", "AD", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1706-L1721
train
clalancette/pycdlib
pycdlib/udf.py
UDFLogicalVolumeDescriptor.parse
def parse(self, data, extent, desc_tag): # type: (bytes, int, UDFTag) -> None ''' Parse the passed in data into a UDF Logical Volume Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A UDF...
python
def parse(self, data, extent, desc_tag): # type: (bytes, int, UDFTag) -> None ''' Parse the passed in data into a UDF Logical Volume Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A UDF...
[ "def", "parse", "(", "self", ",", "data", ",", "extent", ",", "desc_tag", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Logical Volume Descriptor already initialized'", ")", "(", "tag_unused", ...
Parse the passed in data into a UDF Logical Volume Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A UDFTag object that represents the Descriptor Tag. Returns: Nothing.
[ "Parse", "the", "passed", "in", "data", "into", "a", "UDF", "Logical", "Volume", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1741-L1790
train
clalancette/pycdlib
pycdlib/udf.py
UDFLogicalVolumeDescriptor.record
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Logical Volume Descriptor. Parameters: None. Returns: A string representing this UDF Logical Volume Descriptor. ''' if not self._initialized: ...
python
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Logical Volume Descriptor. Parameters: None. Returns: A string representing this UDF Logical Volume Descriptor. ''' if not self._initialized: ...
[ "def", "record", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Logical Volume Descriptor not initialized'", ")", "rec", "=", "struct", ".", "pack", "(", "self", ".", "FM...
A method to generate the string representing this UDF Logical Volume Descriptor. Parameters: None. Returns: A string representing this UDF Logical Volume Descriptor.
[ "A", "method", "to", "generate", "the", "string", "representing", "this", "UDF", "Logical", "Volume", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1792-L1814
train
clalancette/pycdlib
pycdlib/udf.py
UDFLogicalVolumeDescriptor.new
def new(self): # type: () -> None ''' A method to create a new UDF Logical Volume Descriptor. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Logical Volume Descriptor al...
python
def new(self): # type: () -> None ''' A method to create a new UDF Logical Volume Descriptor. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Logical Volume Descriptor al...
[ "def", "new", "(", "self", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Logical Volume Descriptor already initialized'", ")", "self", ".", "desc_tag", "=", "UDFTag", "(", ")", "self", ".", ...
A method to create a new UDF Logical Volume Descriptor. Parameters: None. Returns: Nothing.
[ "A", "method", "to", "create", "a", "new", "UDF", "Logical", "Volume", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1834-L1871
train
clalancette/pycdlib
pycdlib/udf.py
UDFLogicalVolumeDescriptor.set_integrity_location
def set_integrity_location(self, integrity_extent): # type: (int) -> None ''' A method to set the location of the UDF Integrity sequence that this descriptor references. Parameters: integrity_extent - The new extent that the UDF Integrity sequence should start at. Retur...
python
def set_integrity_location(self, integrity_extent): # type: (int) -> None ''' A method to set the location of the UDF Integrity sequence that this descriptor references. Parameters: integrity_extent - The new extent that the UDF Integrity sequence should start at. Retur...
[ "def", "set_integrity_location", "(", "self", ",", "integrity_extent", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Logical Volume Descriptor not initialized'", ")", "self", ".", "integrity...
A method to set the location of the UDF Integrity sequence that this descriptor references. Parameters: integrity_extent - The new extent that the UDF Integrity sequence should start at. Returns: Nothing.
[ "A", "method", "to", "set", "the", "location", "of", "the", "UDF", "Integrity", "sequence", "that", "this", "descriptor", "references", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1889-L1902
train
clalancette/pycdlib
pycdlib/udf.py
UDFUnallocatedSpaceDescriptor.parse
def parse(self, data, extent, desc_tag): # type: (bytes, int, UDFTag) -> None ''' Parse the passed in data into a UDF Unallocated Space Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A ...
python
def parse(self, data, extent, desc_tag): # type: (bytes, int, UDFTag) -> None ''' Parse the passed in data into a UDF Unallocated Space Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A ...
[ "def", "parse", "(", "self", ",", "data", ",", "extent", ",", "desc_tag", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Unallocated Space Descriptor already initialized'", ")", "(", "tag_unused...
Parse the passed in data into a UDF Unallocated Space Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A UDFTag object that represents the Descriptor Tag. Returns: Nothing.
[ "Parse", "the", "passed", "in", "data", "into", "a", "UDF", "Unallocated", "Space", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1919-L1944
train
clalancette/pycdlib
pycdlib/udf.py
UDFTerminatingDescriptor.parse
def parse(self, extent, desc_tag): # type: (int, UDFTag) -> None ''' Parse the passed in data into a UDF Terminating Descriptor. Parameters: extent - The extent that this descriptor currently lives at. desc_tag - A UDFTag object that represents the Descriptor Tag. ...
python
def parse(self, extent, desc_tag): # type: (int, UDFTag) -> None ''' Parse the passed in data into a UDF Terminating Descriptor. Parameters: extent - The extent that this descriptor currently lives at. desc_tag - A UDFTag object that represents the Descriptor Tag. ...
[ "def", "parse", "(", "self", ",", "extent", ",", "desc_tag", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Terminating Descriptor already initialized'", ")", "self", ".", "desc_tag", "=", "de...
Parse the passed in data into a UDF Terminating Descriptor. Parameters: extent - The extent that this descriptor currently lives at. desc_tag - A UDFTag object that represents the Descriptor Tag. Returns: Nothing.
[ "Parse", "the", "passed", "in", "data", "into", "a", "UDF", "Terminating", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2033-L2051
train
clalancette/pycdlib
pycdlib/udf.py
UDFTerminatingDescriptor.record
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Terminating Descriptor. Parameters: None. Returns: A string representing this UDF Terminating Descriptor. ''' if not self._initialized: ...
python
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Terminating Descriptor. Parameters: None. Returns: A string representing this UDF Terminating Descriptor. ''' if not self._initialized: ...
[ "def", "record", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Terminating Descriptor not initialized'", ")", "rec", "=", "struct", ".", "pack", "(", "self", ".", "FMT",...
A method to generate the string representing this UDF Terminating Descriptor. Parameters: None. Returns: A string representing this UDF Terminating Descriptor.
[ "A", "method", "to", "generate", "the", "string", "representing", "this", "UDF", "Terminating", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2053-L2068
train
clalancette/pycdlib
pycdlib/udf.py
UDFTerminatingDescriptor.new
def new(self): # type: () -> None ''' A method to create a new UDF Terminating Descriptor. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Terminating Descriptor already ...
python
def new(self): # type: () -> None ''' A method to create a new UDF Terminating Descriptor. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Terminating Descriptor already ...
[ "def", "new", "(", "self", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Terminating Descriptor already initialized'", ")", "self", ".", "desc_tag", "=", "UDFTag", "(", ")", "self", ".", "d...
A method to create a new UDF Terminating Descriptor. Parameters: None. Returns: Nothing.
[ "A", "method", "to", "create", "a", "new", "UDF", "Terminating", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2087-L2103
train
clalancette/pycdlib
pycdlib/udf.py
UDFTerminatingDescriptor.set_extent_location
def set_extent_location(self, new_location, tag_location=None): # type: (int, int) -> None ''' A method to set the location of this UDF Terminating Descriptor. Parameters: new_location - The new extent this UDF Terminating Descriptor should be located at. tag_location ...
python
def set_extent_location(self, new_location, tag_location=None): # type: (int, int) -> None ''' A method to set the location of this UDF Terminating Descriptor. Parameters: new_location - The new extent this UDF Terminating Descriptor should be located at. tag_location ...
[ "def", "set_extent_location", "(", "self", ",", "new_location", ",", "tag_location", "=", "None", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Terminating Descriptor not initialized'", ")...
A method to set the location of this UDF Terminating Descriptor. Parameters: new_location - The new extent this UDF Terminating Descriptor should be located at. tag_location - The tag location to set for this UDF Terminator Descriptor. Returns: Nothing.
[ "A", "method", "to", "set", "the", "location", "of", "this", "UDF", "Terminating", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2105-L2122
train
clalancette/pycdlib
pycdlib/udf.py
UDFLogicalVolumeHeaderDescriptor.parse
def parse(self, data): # type: (bytes) -> None ''' Parse the passed in data into a UDF Logical Volume Header Descriptor. Parameters: data - The data to parse. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlib...
python
def parse(self, data): # type: (bytes) -> None ''' Parse the passed in data into a UDF Logical Volume Header Descriptor. Parameters: data - The data to parse. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlib...
[ "def", "parse", "(", "self", ",", "data", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Logical Volume Header Descriptor already initialized'", ")", "(", "self", ".", "unique_id", ",", "reserve...
Parse the passed in data into a UDF Logical Volume Header Descriptor. Parameters: data - The data to parse. Returns: Nothing.
[ "Parse", "the", "passed", "in", "data", "into", "a", "UDF", "Logical", "Volume", "Header", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2137-L2151
train
clalancette/pycdlib
pycdlib/udf.py
UDFLogicalVolumeHeaderDescriptor.new
def new(self): # type: () -> None ''' A method to create a new UDF Logical Volume Header Descriptor. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Logical Volume Header...
python
def new(self): # type: () -> None ''' A method to create a new UDF Logical Volume Header Descriptor. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Logical Volume Header...
[ "def", "new", "(", "self", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Logical Volume Header Descriptor already initialized'", ")", "self", ".", "unique_id", "=", "261", "self", ".", "_initia...
A method to create a new UDF Logical Volume Header Descriptor. Parameters: None. Returns: Nothing.
[ "A", "method", "to", "create", "a", "new", "UDF", "Logical", "Volume", "Header", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2169-L2184
train
clalancette/pycdlib
pycdlib/udf.py
UDFLogicalVolumeImplementationUse.parse
def parse(self, data): # type: (bytes) -> None ''' Parse the passed in data into a UDF Logical Volume Implementation Use. Parameters: data - The data to parse. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdli...
python
def parse(self, data): # type: (bytes) -> None ''' Parse the passed in data into a UDF Logical Volume Implementation Use. Parameters: data - The data to parse. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdli...
[ "def", "parse", "(", "self", ",", "data", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Logical Volume Implementation Use already initialized'", ")", "(", "impl_id", ",", "self", ".", "num_file...
Parse the passed in data into a UDF Logical Volume Implementation Use. Parameters: data - The data to parse. Returns: Nothing.
[ "Parse", "the", "passed", "in", "data", "into", "a", "UDF", "Logical", "Volume", "Implementation", "Use", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2201-L2223
train
clalancette/pycdlib
pycdlib/udf.py
UDFLogicalVolumeImplementationUse.record
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Logical Volume Implementation Use. Parameters: None. Returns: A string representing this UDF Logical Volume Implementation Use. ''' if not se...
python
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Logical Volume Implementation Use. Parameters: None. Returns: A string representing this UDF Logical Volume Implementation Use. ''' if not se...
[ "def", "record", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Logical Volume Implementation Use not initialized'", ")", "return", "struct", ".", "pack", "(", "self", ".", ...
A method to generate the string representing this UDF Logical Volume Implementation Use. Parameters: None. Returns: A string representing this UDF Logical Volume Implementation Use.
[ "A", "method", "to", "generate", "the", "string", "representing", "this", "UDF", "Logical", "Volume", "Implementation", "Use", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2225-L2243
train
clalancette/pycdlib
pycdlib/udf.py
UDFLogicalVolumeImplementationUse.new
def new(self): # type: () -> None ''' A method to create a new UDF Logical Volume Implementation Use. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Logical Volume Imple...
python
def new(self): # type: () -> None ''' A method to create a new UDF Logical Volume Implementation Use. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Logical Volume Imple...
[ "def", "new", "(", "self", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Logical Volume Implementation Use already initialized'", ")", "self", ".", "impl_id", "=", "UDFEntityID", "(", ")", "sel...
A method to create a new UDF Logical Volume Implementation Use. Parameters: None. Returns: Nothing.
[ "A", "method", "to", "create", "a", "new", "UDF", "Logical", "Volume", "Implementation", "Use", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2245-L2269
train
clalancette/pycdlib
pycdlib/udf.py
UDFLogicalVolumeIntegrityDescriptor.parse
def parse(self, data, extent, desc_tag): # type: (bytes, int, UDFTag) -> None ''' Parse the passed in data into a UDF Logical Volume Integrity Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_t...
python
def parse(self, data, extent, desc_tag): # type: (bytes, int, UDFTag) -> None ''' Parse the passed in data into a UDF Logical Volume Integrity Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_t...
[ "def", "parse", "(", "self", ",", "data", ",", "extent", ",", "desc_tag", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Logical Volume Integrity Descriptor already initialized'", ")", "(", "tag...
Parse the passed in data into a UDF Logical Volume Integrity Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A UDFTag object that represents the Descriptor Tag. Returns: Nothing.
[ "Parse", "the", "passed", "in", "data", "into", "a", "UDF", "Logical", "Volume", "Integrity", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2288-L2341
train
clalancette/pycdlib
pycdlib/udf.py
UDFLogicalVolumeIntegrityDescriptor.record
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Logical Volume Integrity Descriptor. Parameters: None. Returns: A string representing this UDF Logical Volume Integrity Descriptor. ''' if no...
python
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Logical Volume Integrity Descriptor. Parameters: None. Returns: A string representing this UDF Logical Volume Integrity Descriptor. ''' if no...
[ "def", "record", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Logical Volume Integrity Descriptor not initialized'", ")", "rec", "=", "struct", ".", "pack", "(", "self", ...
A method to generate the string representing this UDF Logical Volume Integrity Descriptor. Parameters: None. Returns: A string representing this UDF Logical Volume Integrity Descriptor.
[ "A", "method", "to", "generate", "the", "string", "representing", "this", "UDF", "Logical", "Volume", "Integrity", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2343-L2363
train
clalancette/pycdlib
pycdlib/udf.py
UDFLogicalVolumeIntegrityDescriptor.new
def new(self): # type: () -> None ''' A method to create a new UDF Logical Volume Integrity Descriptor. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Logical Volume Int...
python
def new(self): # type: () -> None ''' A method to create a new UDF Logical Volume Integrity Descriptor. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Logical Volume Int...
[ "def", "new", "(", "self", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF Logical Volume Integrity Descriptor already initialized'", ")", "self", ".", "desc_tag", "=", "UDFTag", "(", ")", "self"...
A method to create a new UDF Logical Volume Integrity Descriptor. Parameters: None. Returns: Nothing.
[ "A", "method", "to", "create", "a", "new", "UDF", "Logical", "Volume", "Integrity", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2383-L2412
train
clalancette/pycdlib
pycdlib/udf.py
UDFFileSetDescriptor.parse
def parse(self, data, extent, desc_tag): # type: (bytes, int, UDFTag) -> None ''' Parse the passed in data into a UDF File Set Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A UDFTag ob...
python
def parse(self, data, extent, desc_tag): # type: (bytes, int, UDFTag) -> None ''' Parse the passed in data into a UDF File Set Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A UDFTag ob...
[ "def", "parse", "(", "self", ",", "data", ",", "extent", ",", "desc_tag", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF File Set Descriptor already initialized'", ")", "(", "tag_unused", ",",...
Parse the passed in data into a UDF File Set Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A UDFTag object that represents the Descriptor Tag. Returns: Nothing.
[ "Parse", "the", "passed", "in", "data", "into", "a", "UDF", "File", "Set", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2448-L2499
train
clalancette/pycdlib
pycdlib/udf.py
UDFFileSetDescriptor.record
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF File Set Descriptor. Parameters: None. Returns: A string representing this UDF File Set Descriptor. ''' if not self._initialized: ...
python
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF File Set Descriptor. Parameters: None. Returns: A string representing this UDF File Set Descriptor. ''' if not self._initialized: ...
[ "def", "record", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF File Set Descriptor not initialized'", ")", "rec", "=", "struct", ".", "pack", "(", "self", ".", "FMT", ...
A method to generate the string representing this UDF File Set Descriptor. Parameters: None. Returns: A string representing this UDF File Set Descriptor.
[ "A", "method", "to", "generate", "the", "string", "representing", "this", "UDF", "File", "Set", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2501-L2523
train
clalancette/pycdlib
pycdlib/udf.py
UDFFileSetDescriptor.new
def new(self): # type: () -> None ''' A method to create a new UDF File Set Descriptor. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF File Set Descriptor already initia...
python
def new(self): # type: () -> None ''' A method to create a new UDF File Set Descriptor. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF File Set Descriptor already initia...
[ "def", "new", "(", "self", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF File Set Descriptor already initialized'", ")", "self", ".", "desc_tag", "=", "UDFTag", "(", ")", "self", ".", "desc...
A method to create a new UDF File Set Descriptor. Parameters: None. Returns: Nothing.
[ "A", "method", "to", "create", "a", "new", "UDF", "File", "Set", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2542-L2575
train
clalancette/pycdlib
pycdlib/udf.py
UDFFileSetDescriptor.set_extent_location
def set_extent_location(self, new_location): # type: (int) -> None ''' A method to set the location of this UDF File Set Descriptor. Parameters: new_location - The new extent this UDF File Set Descriptor should be located at. Returns: Nothing. ''' ...
python
def set_extent_location(self, new_location): # type: (int) -> None ''' A method to set the location of this UDF File Set Descriptor. Parameters: new_location - The new extent this UDF File Set Descriptor should be located at. Returns: Nothing. ''' ...
[ "def", "set_extent_location", "(", "self", ",", "new_location", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF File Set Descriptor not initialized'", ")", "self", ".", "new_extent_loc", "="...
A method to set the location of this UDF File Set Descriptor. Parameters: new_location - The new extent this UDF File Set Descriptor should be located at. Returns: Nothing.
[ "A", "method", "to", "set", "the", "location", "of", "this", "UDF", "File", "Set", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2577-L2590
train
clalancette/pycdlib
pycdlib/udf.py
UDFICBTag.parse
def parse(self, data): # type: (bytes) -> None ''' Parse the passed in data into a UDF ICB Tag. Parameters: data - The data to parse. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF ICB Ta...
python
def parse(self, data): # type: (bytes) -> None ''' Parse the passed in data into a UDF ICB Tag. Parameters: data - The data to parse. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF ICB Ta...
[ "def", "parse", "(", "self", ",", "data", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF ICB Tag already initialized'", ")", "(", "self", ".", "prior_num_direct_entries", ",", "self", ".", "...
Parse the passed in data into a UDF ICB Tag. Parameters: data - The data to parse. Returns: Nothing.
[ "Parse", "the", "passed", "in", "data", "into", "a", "UDF", "ICB", "Tag", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2607-L2631
train
clalancette/pycdlib
pycdlib/udf.py
UDFICBTag.record
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF ICB Tag. Parameters: None. Returns: A string representing this UDF ICB Tag. ''' if not self._initialized: raise pycdlibexception.PyCdlibI...
python
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF ICB Tag. Parameters: None. Returns: A string representing this UDF ICB Tag. ''' if not self._initialized: raise pycdlibexception.PyCdlibI...
[ "def", "record", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF ICB Tag not initialized'", ")", "return", "struct", ".", "pack", "(", "self", ".", "FMT", ",", "self", ...
A method to generate the string representing this UDF ICB Tag. Parameters: None. Returns: A string representing this UDF ICB Tag.
[ "A", "method", "to", "generate", "the", "string", "representing", "this", "UDF", "ICB", "Tag", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2633-L2650
train
clalancette/pycdlib
pycdlib/udf.py
UDFICBTag.new
def new(self, file_type): # type: (str) -> None ''' A method to create a new UDF ICB Tag. Parameters: file_type - What file type this represents, one of 'dir', 'file', or 'symlink'. Returns: Nothing. ''' if self._initialized: raise p...
python
def new(self, file_type): # type: (str) -> None ''' A method to create a new UDF ICB Tag. Parameters: file_type - What file type this represents, one of 'dir', 'file', or 'symlink'. Returns: Nothing. ''' if self._initialized: raise p...
[ "def", "new", "(", "self", ",", "file_type", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF ICB Tag already initialized'", ")", "self", ".", "prior_num_direct_entries", "=", "0", "self", ".", ...
A method to create a new UDF ICB Tag. Parameters: file_type - What file type this represents, one of 'dir', 'file', or 'symlink'. Returns: Nothing.
[ "A", "method", "to", "create", "a", "new", "UDF", "ICB", "Tag", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2652-L2682
train
clalancette/pycdlib
pycdlib/udf.py
UDFFileEntry.parse
def parse(self, data, extent, parent, desc_tag): # type: (bytes, int, Optional[UDFFileEntry], UDFTag) -> None ''' Parse the passed in data into a UDF File Entry. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. ...
python
def parse(self, data, extent, parent, desc_tag): # type: (bytes, int, Optional[UDFFileEntry], UDFTag) -> None ''' Parse the passed in data into a UDF File Entry. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. ...
[ "def", "parse", "(", "self", ",", "data", ",", "extent", ",", "parent", ",", "desc_tag", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF File Entry already initialized'", ")", "(", "tag_unuse...
Parse the passed in data into a UDF File Entry. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. parent - The parent File Entry for this file (may be None). desc_tag - A UDFTag object that represents the Descriptor Tag. ...
[ "Parse", "the", "passed", "in", "data", "into", "a", "UDF", "File", "Entry", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2709-L2777
train
clalancette/pycdlib
pycdlib/udf.py
UDFFileEntry.record
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF File Entry. Parameters: None. Returns: A string representing this UDF File Entry. ''' if not self._initialized: raise pycdlibexception.Py...
python
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF File Entry. Parameters: None. Returns: A string representing this UDF File Entry. ''' if not self._initialized: raise pycdlibexception.Py...
[ "def", "record", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF File Entry not initialized'", ")", "rec", "=", "struct", ".", "pack", "(", "self", ".", "FMT", ",", "b...
A method to generate the string representing this UDF File Entry. Parameters: None. Returns: A string representing this UDF File Entry.
[ "A", "method", "to", "generate", "the", "string", "representing", "this", "UDF", "File", "Entry", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2779-L2805
train
clalancette/pycdlib
pycdlib/udf.py
UDFFileEntry.new
def new(self, length, file_type, parent, log_block_size): # type: (int, str, Optional[UDFFileEntry], int) -> None ''' A method to create a new UDF File Entry. Parameters: length - The (starting) length of this UDF File Entry; this is ignored if this is a symli...
python
def new(self, length, file_type, parent, log_block_size): # type: (int, str, Optional[UDFFileEntry], int) -> None ''' A method to create a new UDF File Entry. Parameters: length - The (starting) length of this UDF File Entry; this is ignored if this is a symli...
[ "def", "new", "(", "self", ",", "length", ",", "file_type", ",", "parent", ",", "log_block_size", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF File Entry already initialized'", ")", "if", ...
A method to create a new UDF File Entry. Parameters: length - The (starting) length of this UDF File Entry; this is ignored if this is a symlink. file_type - The type that this UDF File entry represents; one of 'dir', 'file', or 'symlink'. parent - The parent UDF Fi...
[ "A", "method", "to", "create", "a", "new", "UDF", "File", "Entry", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2824-L2903
train
clalancette/pycdlib
pycdlib/udf.py
UDFFileEntry.add_file_ident_desc
def add_file_ident_desc(self, new_fi_desc, logical_block_size): # type: (UDFFileIdentifierDescriptor, int) -> int ''' A method to add a new UDF File Identifier Descriptor to this UDF File Entry. Parameters: new_fi_desc - The new UDF File Identifier Descriptor to add. ...
python
def add_file_ident_desc(self, new_fi_desc, logical_block_size): # type: (UDFFileIdentifierDescriptor, int) -> int ''' A method to add a new UDF File Identifier Descriptor to this UDF File Entry. Parameters: new_fi_desc - The new UDF File Identifier Descriptor to add. ...
[ "def", "add_file_ident_desc", "(", "self", ",", "new_fi_desc", ",", "logical_block_size", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF File Entry not initialized'", ")", "if", "self", "...
A method to add a new UDF File Identifier Descriptor to this UDF File Entry. Parameters: new_fi_desc - The new UDF File Identifier Descriptor to add. logical_block_size - The logical block size to use. Returns: The number of extents added due to adding this File Ident...
[ "A", "method", "to", "add", "a", "new", "UDF", "File", "Identifier", "Descriptor", "to", "this", "UDF", "File", "Entry", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2923-L2960
train
clalancette/pycdlib
pycdlib/udf.py
UDFFileEntry.remove_file_ident_desc_by_name
def remove_file_ident_desc_by_name(self, name, logical_block_size): # type: (bytes, int) -> int ''' A method to remove a UDF File Identifier Descriptor from this UDF File Entry. Parameters: name - The name of the UDF File Identifier Descriptor to remove. logica...
python
def remove_file_ident_desc_by_name(self, name, logical_block_size): # type: (bytes, int) -> int ''' A method to remove a UDF File Identifier Descriptor from this UDF File Entry. Parameters: name - The name of the UDF File Identifier Descriptor to remove. logica...
[ "def", "remove_file_ident_desc_by_name", "(", "self", ",", "name", ",", "logical_block_size", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF File Entry not initialized'", ")", "tmp_fi_desc", ...
A method to remove a UDF File Identifier Descriptor from this UDF File Entry. Parameters: name - The name of the UDF File Identifier Descriptor to remove. logical_block_size - The logical block size to use. Returns: The number of extents removed due to removing this F...
[ "A", "method", "to", "remove", "a", "UDF", "File", "Identifier", "Descriptor", "from", "this", "UDF", "File", "Entry", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2962-L3005
train
clalancette/pycdlib
pycdlib/udf.py
UDFFileEntry.set_data_location
def set_data_location(self, current_extent, start_extent): # pylint: disable=unused-argument # type: (int, int) -> None ''' A method to set the location of the data that this UDF File Entry points to. Parameters: current_extent - Unused start_extent - The star...
python
def set_data_location(self, current_extent, start_extent): # pylint: disable=unused-argument # type: (int, int) -> None ''' A method to set the location of the data that this UDF File Entry points to. Parameters: current_extent - Unused start_extent - The star...
[ "def", "set_data_location", "(", "self", ",", "current_extent", ",", "start_extent", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF File Entry not initialized'", ")", "current_assignment", ...
A method to set the location of the data that this UDF File Entry points to. Parameters: current_extent - Unused start_extent - The starting extent for this data location. Returns: Nothing.
[ "A", "method", "to", "set", "the", "location", "of", "the", "data", "that", "this", "UDF", "File", "Entry", "points", "to", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3007-L3025
train
clalancette/pycdlib
pycdlib/udf.py
UDFFileEntry.set_data_length
def set_data_length(self, length): # type: (int) -> None ''' A method to set the length of the data that this UDF File Entry points to. Parameters: length - The new length for the data. Returns: Nothing. ''' if not self._initialized: ...
python
def set_data_length(self, length): # type: (int) -> None ''' A method to set the length of the data that this UDF File Entry points to. Parameters: length - The new length for the data. Returns: Nothing. ''' if not self._initialized: ...
[ "def", "set_data_length", "(", "self", ",", "length", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'Directory Record not yet initialized'", ")", "len_diff", "=", "length", "-", "self", "."...
A method to set the length of the data that this UDF File Entry points to. Parameters: length - The new length for the data. Returns: Nothing.
[ "A", "method", "to", "set", "the", "length", "of", "the", "data", "that", "this", "UDF", "File", "Entry", "points", "to", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3042-L3080
train
clalancette/pycdlib
pycdlib/udf.py
UDFFileEntry.file_identifier
def file_identifier(self): # type: () -> bytes ''' A method to get the name of this UDF File Entry as a byte string. Parameters: None. Returns: The UDF File Entry as a byte string. ''' if not self._initialized: raise pycdlibexception...
python
def file_identifier(self): # type: () -> bytes ''' A method to get the name of this UDF File Entry as a byte string. Parameters: None. Returns: The UDF File Entry as a byte string. ''' if not self._initialized: raise pycdlibexception...
[ "def", "file_identifier", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF File Entry not initialized'", ")", "if", "self", ".", "file_ident", "is", "None", ":", "return", ...
A method to get the name of this UDF File Entry as a byte string. Parameters: None. Returns: The UDF File Entry as a byte string.
[ "A", "method", "to", "get", "the", "name", "of", "this", "UDF", "File", "Entry", "as", "a", "byte", "string", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3124-L3140
train
clalancette/pycdlib
pycdlib/udf.py
UDFFileEntry.find_file_ident_desc_by_name
def find_file_ident_desc_by_name(self, currpath): # type: (bytes) -> UDFFileIdentifierDescriptor ''' A method to find a UDF File Identifier descriptor by its name. Parameters: currpath - The UTF-8 encoded name to look up. Returns: The UDF File Identifier descri...
python
def find_file_ident_desc_by_name(self, currpath): # type: (bytes) -> UDFFileIdentifierDescriptor ''' A method to find a UDF File Identifier descriptor by its name. Parameters: currpath - The UTF-8 encoded name to look up. Returns: The UDF File Identifier descri...
[ "def", "find_file_ident_desc_by_name", "(", "self", ",", "currpath", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF File Entry not initialized'", ")", "if", "self", ".", "icb_tag", ".", ...
A method to find a UDF File Identifier descriptor by its name. Parameters: currpath - The UTF-8 encoded name to look up. Returns: The UDF File Identifier descriptor corresponding to the passed in name.
[ "A", "method", "to", "find", "a", "UDF", "File", "Identifier", "descriptor", "by", "its", "name", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3142-L3182
train
clalancette/pycdlib
pycdlib/udf.py
UDFFileEntry.track_file_ident_desc
def track_file_ident_desc(self, file_ident): # type: (UDFFileIdentifierDescriptor) -> None ''' A method to start tracking a UDF File Identifier descriptor in this UDF File Entry. Both 'tracking' and 'addition' add the identifier to the list of file identifiers, but tracking doee...
python
def track_file_ident_desc(self, file_ident): # type: (UDFFileIdentifierDescriptor) -> None ''' A method to start tracking a UDF File Identifier descriptor in this UDF File Entry. Both 'tracking' and 'addition' add the identifier to the list of file identifiers, but tracking doee...
[ "def", "track_file_ident_desc", "(", "self", ",", "file_ident", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF File Entry not initialized'", ")", "self", ".", "fi_descs", ".", "append", ...
A method to start tracking a UDF File Identifier descriptor in this UDF File Entry. Both 'tracking' and 'addition' add the identifier to the list of file identifiers, but tracking doees not expand or otherwise modify the UDF File Entry. Parameters: file_ident - The UDF File Id...
[ "A", "method", "to", "start", "tracking", "a", "UDF", "File", "Identifier", "descriptor", "in", "this", "UDF", "File", "Entry", ".", "Both", "tracking", "and", "addition", "add", "the", "identifier", "to", "the", "list", "of", "file", "identifiers", "but", ...
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3184-L3200
train
clalancette/pycdlib
pycdlib/udf.py
UDFFileEntry.finish_directory_parse
def finish_directory_parse(self): # type: () -> None ''' A method to finish up the parsing of this UDF File Entry directory. In particular, this method checks to see if it is in sorted order for future use. Parameters: None. Returns: Nothing. ...
python
def finish_directory_parse(self): # type: () -> None ''' A method to finish up the parsing of this UDF File Entry directory. In particular, this method checks to see if it is in sorted order for future use. Parameters: None. Returns: Nothing. ...
[ "def", "finish_directory_parse", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF File Entry not initialized'", ")", "if", "self", ".", "icb_tag", ".", "file_type", "!=", "4"...
A method to finish up the parsing of this UDF File Entry directory. In particular, this method checks to see if it is in sorted order for future use. Parameters: None. Returns: Nothing.
[ "A", "method", "to", "finish", "up", "the", "parsing", "of", "this", "UDF", "File", "Entry", "directory", ".", "In", "particular", "this", "method", "checks", "to", "see", "if", "it", "is", "in", "sorted", "order", "for", "future", "use", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3202-L3218
train
clalancette/pycdlib
pycdlib/udf.py
UDFFileIdentifierDescriptor.length
def length(cls, namelen): # type: (Type[UDFFileIdentifierDescriptor], int) -> int ''' A class method to calculate the size this UDFFileIdentifierDescriptor would take up. Parameters: cls - The class to use (always UDFFileIdentifierDescriptor). namelen - The len...
python
def length(cls, namelen): # type: (Type[UDFFileIdentifierDescriptor], int) -> int ''' A class method to calculate the size this UDFFileIdentifierDescriptor would take up. Parameters: cls - The class to use (always UDFFileIdentifierDescriptor). namelen - The len...
[ "def", "length", "(", "cls", ",", "namelen", ")", ":", "if", "namelen", ">", "0", ":", "namelen", "+=", "1", "to_add", "=", "struct", ".", "calcsize", "(", "cls", ".", "FMT", ")", "+", "namelen", "return", "to_add", "+", "UDFFileIdentifierDescriptor", ...
A class method to calculate the size this UDFFileIdentifierDescriptor would take up. Parameters: cls - The class to use (always UDFFileIdentifierDescriptor). namelen - The length of the name. Returns: The length that the UDFFileIdentifierDescriptor would take up.
[ "A", "class", "method", "to", "calculate", "the", "size", "this", "UDFFileIdentifierDescriptor", "would", "take", "up", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3276-L3291
train
clalancette/pycdlib
pycdlib/udf.py
UDFFileIdentifierDescriptor.parse
def parse(self, data, extent, desc_tag, parent): # type: (bytes, int, UDFTag, UDFFileEntry) -> int ''' Parse the passed in data into a UDF File Identifier Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. ...
python
def parse(self, data, extent, desc_tag, parent): # type: (bytes, int, UDFTag, UDFFileEntry) -> int ''' Parse the passed in data into a UDF File Identifier Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. ...
[ "def", "parse", "(", "self", ",", "data", ",", "extent", ",", "desc_tag", ",", "parent", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF File Identifier Descriptor already initialized'", ")", "...
Parse the passed in data into a UDF File Identifier Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A UDFTag object that represents the Descriptor Tag. parent - The UDF File Entry representing the pare...
[ "Parse", "the", "passed", "in", "data", "into", "a", "UDF", "File", "Identifier", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3309-L3371
train
clalancette/pycdlib
pycdlib/udf.py
UDFFileIdentifierDescriptor.record
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF File Identifier Descriptor. Parameters: None. Returns: A string representing this UDF File Identifier Descriptor. ''' if not self._initialized: ...
python
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF File Identifier Descriptor. Parameters: None. Returns: A string representing this UDF File Identifier Descriptor. ''' if not self._initialized: ...
[ "def", "record", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF File Identifier Descriptor not initialized'", ")", "if", "self", ".", "len_fi", ">", "0", ":", "if", "self...
A method to generate the string representing this UDF File Identifier Descriptor. Parameters: None. Returns: A string representing this UDF File Identifier Descriptor.
[ "A", "method", "to", "generate", "the", "string", "representing", "this", "UDF", "File", "Identifier", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3401-L3429
train
clalancette/pycdlib
pycdlib/udf.py
UDFFileIdentifierDescriptor.new
def new(self, isdir, isparent, name, parent): # type: (bool, bool, bytes, Optional[UDFFileEntry]) -> None ''' A method to create a new UDF File Identifier. Parameters: isdir - Whether this File Identifier is a directory. isparent - Whether this File Identifier is a par...
python
def new(self, isdir, isparent, name, parent): # type: (bool, bool, bytes, Optional[UDFFileEntry]) -> None ''' A method to create a new UDF File Identifier. Parameters: isdir - Whether this File Identifier is a directory. isparent - Whether this File Identifier is a par...
[ "def", "new", "(", "self", ",", "isdir", ",", "isparent", ",", "name", ",", "parent", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF File Identifier already initialized'", ")", "self", ".", ...
A method to create a new UDF File Identifier. Parameters: isdir - Whether this File Identifier is a directory. isparent - Whether this File Identifier is a parent (..). name - The name for this File Identifier. parent - The UDF File Entry representing the parent. Ret...
[ "A", "method", "to", "create", "a", "new", "UDF", "File", "Identifier", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3448-L3494
train
clalancette/pycdlib
pycdlib/udf.py
UDFFileIdentifierDescriptor.set_icb
def set_icb(self, new_location, tag_location): # type: (int, int) -> None ''' A method to set the location of the data that this UDF File Identifier Descriptor points at. The data can either be for a directory or for a file. Parameters: new_location - The new e...
python
def set_icb(self, new_location, tag_location): # type: (int, int) -> None ''' A method to set the location of the data that this UDF File Identifier Descriptor points at. The data can either be for a directory or for a file. Parameters: new_location - The new e...
[ "def", "set_icb", "(", "self", ",", "new_location", ",", "tag_location", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'UDF File Identifier not initialized'", ")", "self", ".", "icb", ".", ...
A method to set the location of the data that this UDF File Identifier Descriptor points at. The data can either be for a directory or for a file. Parameters: new_location - The new extent this UDF File Identifier Descriptor data lives at. tag_location - The new relative exte...
[ "A", "method", "to", "set", "the", "location", "of", "the", "data", "that", "this", "UDF", "File", "Identifier", "Descriptor", "points", "at", ".", "The", "data", "can", "either", "be", "for", "a", "directory", "or", "for", "a", "file", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3515-L3531
train
clalancette/pycdlib
pycdlib/headervd.py
pvd_factory
def pvd_factory(sys_ident, vol_ident, set_size, seqnum, log_block_size, vol_set_ident, pub_ident_str, preparer_ident_str, app_ident_str, copyright_file, abstract_file, bibli_file, vol_expire_date, app_use, xa): # type: (bytes, bytes, int, int, int, bytes, bytes, bytes...
python
def pvd_factory(sys_ident, vol_ident, set_size, seqnum, log_block_size, vol_set_ident, pub_ident_str, preparer_ident_str, app_ident_str, copyright_file, abstract_file, bibli_file, vol_expire_date, app_use, xa): # type: (bytes, bytes, int, int, int, bytes, bytes, bytes...
[ "def", "pvd_factory", "(", "sys_ident", ",", "vol_ident", ",", "set_size", ",", "seqnum", ",", "log_block_size", ",", "vol_set_ident", ",", "pub_ident_str", ",", "preparer_ident_str", ",", "app_ident_str", ",", "copyright_file", ",", "abstract_file", ",", "bibli_fil...
An internal function to create a Primary Volume Descriptor. Parameters: sys_ident - The system identification string to use on the new ISO. vol_ident - The volume identification string to use on the new ISO. set_size - The size of the set of ISOs this ISO is a part of. seqnum - The sequence num...
[ "An", "internal", "function", "to", "create", "a", "Primary", "Volume", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L746-L785
train
clalancette/pycdlib
pycdlib/headervd.py
enhanced_vd_factory
def enhanced_vd_factory(sys_ident, vol_ident, set_size, seqnum, log_block_size, vol_set_ident, pub_ident_str, preparer_ident_str, app_ident_str, copyright_file, abstract_file, bibli_file, vol_expire_date, app_use, xa): #...
python
def enhanced_vd_factory(sys_ident, vol_ident, set_size, seqnum, log_block_size, vol_set_ident, pub_ident_str, preparer_ident_str, app_ident_str, copyright_file, abstract_file, bibli_file, vol_expire_date, app_use, xa): #...
[ "def", "enhanced_vd_factory", "(", "sys_ident", ",", "vol_ident", ",", "set_size", ",", "seqnum", ",", "log_block_size", ",", "vol_set_ident", ",", "pub_ident_str", ",", "preparer_ident_str", ",", "app_ident_str", ",", "copyright_file", ",", "abstract_file", ",", "b...
An internal function to create an Enhanced Volume Descriptor for ISO 1999. Parameters: sys_ident - The system identification string to use on the new ISO. vol_ident - The volume identification string to use on the new ISO. set_size - The size of the set of ISOs this ISO is a part of. seqnum - T...
[ "An", "internal", "function", "to", "create", "an", "Enhanced", "Volume", "Descriptor", "for", "ISO", "1999", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L788-L828
train
clalancette/pycdlib
pycdlib/headervd.py
joliet_vd_factory
def joliet_vd_factory(joliet, sys_ident, vol_ident, set_size, seqnum, log_block_size, vol_set_ident, pub_ident_str, preparer_ident_str, app_ident_str, copyright_file, abstract_file, bibli_file, vol_expire_date, app_use, xa): # type: (int, bytes, byte...
python
def joliet_vd_factory(joliet, sys_ident, vol_ident, set_size, seqnum, log_block_size, vol_set_ident, pub_ident_str, preparer_ident_str, app_ident_str, copyright_file, abstract_file, bibli_file, vol_expire_date, app_use, xa): # type: (int, bytes, byte...
[ "def", "joliet_vd_factory", "(", "joliet", ",", "sys_ident", ",", "vol_ident", ",", "set_size", ",", "seqnum", ",", "log_block_size", ",", "vol_set_ident", ",", "pub_ident_str", ",", "preparer_ident_str", ",", "app_ident_str", ",", "copyright_file", ",", "abstract_f...
An internal function to create an Joliet Volume Descriptor. Parameters: joliet - The joliet version to use, one of 1, 2, or 3. sys_ident - The system identification string to use on the new ISO. vol_ident - The volume identification string to use on the new ISO. set_size - The size of the set o...
[ "An", "internal", "function", "to", "create", "an", "Joliet", "Volume", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L831-L880
train
clalancette/pycdlib
pycdlib/headervd.py
PrimaryOrSupplementaryVD.copy
def copy(self, orig): # type: (PrimaryOrSupplementaryVD) -> None ''' A method to populate and initialize this VD object from the contents of an old VD. Parameters: orig_pvd - The original VD to copy data from. Returns: Nothing. ''' if se...
python
def copy(self, orig): # type: (PrimaryOrSupplementaryVD) -> None ''' A method to populate and initialize this VD object from the contents of an old VD. Parameters: orig_pvd - The original VD to copy data from. Returns: Nothing. ''' if se...
[ "def", "copy", "(", "self", ",", "orig", ")", ":", "if", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'This Volume Descriptor is already initialized'", ")", "self", ".", "version", "=", "orig", ".", "version", ...
A method to populate and initialize this VD object from the contents of an old VD. Parameters: orig_pvd - The original VD to copy data from. Returns: Nothing.
[ "A", "method", "to", "populate", "and", "initialize", "this", "VD", "object", "from", "the", "contents", "of", "an", "old", "VD", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L336-L392
train
clalancette/pycdlib
pycdlib/headervd.py
PrimaryOrSupplementaryVD.record
def record(self): # type: () -> bytes ''' A method to generate the string representing this Volume Descriptor. Parameters: None. Returns: A string representing this Volume Descriptor. ''' if not self._initialized: raise pycdlibexcept...
python
def record(self): # type: () -> bytes ''' A method to generate the string representing this Volume Descriptor. Parameters: None. Returns: A string representing this Volume Descriptor. ''' if not self._initialized: raise pycdlibexcept...
[ "def", "record", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'This Volume Descriptor is not yet initialized'", ")", "vol_mod_date", "=", "dates", ".", "VolumeDescriptorDate", "("...
A method to generate the string representing this Volume Descriptor. Parameters: None. Returns: A string representing this Volume Descriptor.
[ "A", "method", "to", "generate", "the", "string", "representing", "this", "Volume", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L394-L446
train
clalancette/pycdlib
pycdlib/headervd.py
PrimaryOrSupplementaryVD.track_rr_ce_entry
def track_rr_ce_entry(self, extent, offset, length): # type: (int, int, int) -> rockridge.RockRidgeContinuationBlock ''' Start tracking a new Rock Ridge Continuation Entry entry in this Volume Descriptor, at the extent, offset, and length provided. Since Rock Ridge Continuation ...
python
def track_rr_ce_entry(self, extent, offset, length): # type: (int, int, int) -> rockridge.RockRidgeContinuationBlock ''' Start tracking a new Rock Ridge Continuation Entry entry in this Volume Descriptor, at the extent, offset, and length provided. Since Rock Ridge Continuation ...
[ "def", "track_rr_ce_entry", "(", "self", ",", "extent", ",", "offset", ",", "length", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'This Primary Volume Descriptor is not yet initialized'", ")"...
Start tracking a new Rock Ridge Continuation Entry entry in this Volume Descriptor, at the extent, offset, and length provided. Since Rock Ridge Continuation Blocks are shared across multiple Rock Ridge Directory Records, the most logical place to track them is in the PVD. This method i...
[ "Start", "tracking", "a", "new", "Rock", "Ridge", "Continuation", "Entry", "entry", "in", "this", "Volume", "Descriptor", "at", "the", "extent", "offset", "and", "length", "provided", ".", "Since", "Rock", "Ridge", "Continuation", "Blocks", "are", "shared", "a...
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L448-L480
train
clalancette/pycdlib
pycdlib/headervd.py
PrimaryOrSupplementaryVD.clear_rr_ce_entries
def clear_rr_ce_entries(self): # type: () -> None ''' A method to clear out all of the extent locations of all Rock Ridge Continuation Entries that the PVD is tracking. This can be used to reset all data before assigning new data. Parameters: None. Retu...
python
def clear_rr_ce_entries(self): # type: () -> None ''' A method to clear out all of the extent locations of all Rock Ridge Continuation Entries that the PVD is tracking. This can be used to reset all data before assigning new data. Parameters: None. Retu...
[ "def", "clear_rr_ce_entries", "(", "self", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'This Primary Volume Descriptor is not yet initialized'", ")", "for", "block", "in", "self", ".", "rr_ce...
A method to clear out all of the extent locations of all Rock Ridge Continuation Entries that the PVD is tracking. This can be used to reset all data before assigning new data. Parameters: None. Returns: Nothing.
[ "A", "method", "to", "clear", "out", "all", "of", "the", "extent", "locations", "of", "all", "Rock", "Ridge", "Continuation", "Entries", "that", "the", "PVD", "is", "tracking", ".", "This", "can", "be", "used", "to", "reset", "all", "data", "before", "as...
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L515-L531
train
clalancette/pycdlib
pycdlib/headervd.py
PrimaryOrSupplementaryVD.add_to_space_size
def add_to_space_size(self, addition_bytes): # type: (int) -> None ''' A method to add bytes to the space size tracked by this Volume Descriptor. Parameters: addition_bytes - The number of bytes to add to the space size. Returns: Nothing. ''' ...
python
def add_to_space_size(self, addition_bytes): # type: (int) -> None ''' A method to add bytes to the space size tracked by this Volume Descriptor. Parameters: addition_bytes - The number of bytes to add to the space size. Returns: Nothing. ''' ...
[ "def", "add_to_space_size", "(", "self", ",", "addition_bytes", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'This Volume Descriptor is not yet initialized'", ")", "self", ".", "space_size", "...
A method to add bytes to the space size tracked by this Volume Descriptor. Parameters: addition_bytes - The number of bytes to add to the space size. Returns: Nothing.
[ "A", "method", "to", "add", "bytes", "to", "the", "space", "size", "tracked", "by", "this", "Volume", "Descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L548-L563
train
clalancette/pycdlib
pycdlib/headervd.py
PrimaryOrSupplementaryVD.remove_from_space_size
def remove_from_space_size(self, removal_bytes): # type: (int) -> None ''' Remove bytes from the volume descriptor. Parameters: removal_bytes - The number of bytes to remove. Returns: Nothing. ''' if not self._initialized: raise pycd...
python
def remove_from_space_size(self, removal_bytes): # type: (int) -> None ''' Remove bytes from the volume descriptor. Parameters: removal_bytes - The number of bytes to remove. Returns: Nothing. ''' if not self._initialized: raise pycd...
[ "def", "remove_from_space_size", "(", "self", ",", "removal_bytes", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'This Volume Descriptor is not yet initialized'", ")", "self", ".", "space_size",...
Remove bytes from the volume descriptor. Parameters: removal_bytes - The number of bytes to remove. Returns: Nothing.
[ "Remove", "bytes", "from", "the", "volume", "descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L565-L579
train
clalancette/pycdlib
pycdlib/headervd.py
PrimaryOrSupplementaryVD.add_to_ptr_size
def add_to_ptr_size(self, ptr_size): # type: (int) -> bool ''' Add the space for a path table record to the volume descriptor. Parameters: ptr_size - The length of the Path Table Record being added to this Volume Descriptor. Returns: True if extents need to be ...
python
def add_to_ptr_size(self, ptr_size): # type: (int) -> bool ''' Add the space for a path table record to the volume descriptor. Parameters: ptr_size - The length of the Path Table Record being added to this Volume Descriptor. Returns: True if extents need to be ...
[ "def", "add_to_ptr_size", "(", "self", ",", "ptr_size", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'This Volume Descriptor is not yet initialized'", ")", "self", ".", "path_tbl_size", "+=", ...
Add the space for a path table record to the volume descriptor. Parameters: ptr_size - The length of the Path Table Record being added to this Volume Descriptor. Returns: True if extents need to be added to the Volume Descriptor, False otherwise.
[ "Add", "the", "space", "for", "a", "path", "table", "record", "to", "the", "volume", "descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L613-L635
train
clalancette/pycdlib
pycdlib/headervd.py
PrimaryOrSupplementaryVD.remove_from_ptr_size
def remove_from_ptr_size(self, ptr_size): # type: (int) -> bool ''' Remove the space for a path table record from the volume descriptor. Parameters: ptr_size - The length of the Path Table Record being removed from this Volume Descriptor. Returns: True if exten...
python
def remove_from_ptr_size(self, ptr_size): # type: (int) -> bool ''' Remove the space for a path table record from the volume descriptor. Parameters: ptr_size - The length of the Path Table Record being removed from this Volume Descriptor. Returns: True if exten...
[ "def", "remove_from_ptr_size", "(", "self", ",", "ptr_size", ")", ":", "if", "not", "self", ".", "_initialized", ":", "raise", "pycdlibexception", ".", "PyCdlibInternalError", "(", "'This Volume Descriptor is not yet initialized'", ")", "self", ".", "path_tbl_size", "...
Remove the space for a path table record from the volume descriptor. Parameters: ptr_size - The length of the Path Table Record being removed from this Volume Descriptor. Returns: True if extents need to be removed from the Volume Descriptor, False otherwise.
[ "Remove", "the", "space", "for", "a", "path", "table", "record", "from", "the", "volume", "descriptor", "." ]
1e7b77a809e905d67dc71e12d70e850be26b6233
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L637-L662
train