repository_name
stringlengths
5
67
func_path_in_repository
stringlengths
4
234
func_name
stringlengths
0
314
whole_func_string
stringlengths
52
3.87M
language
stringclasses
6 values
func_code_string
stringlengths
52
3.87M
func_documentation_string
stringlengths
1
47.2k
func_code_url
stringlengths
85
339
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...
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.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1741-L1790
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: ...
A method to generate the string representing this UDF Logical Volume Descriptor. Parameters: None. Returns: A string representing this UDF Logical Volume Descriptor.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1792-L1814
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...
A method to create a new UDF Logical Volume Descriptor. Parameters: None. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1834-L1871
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...
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.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1889-L1902
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 ...
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.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L1919-L1944
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. ...
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.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2033-L2051
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: ...
A method to generate the string representing this UDF Terminating Descriptor. Parameters: None. Returns: A string representing this UDF Terminating Descriptor.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2053-L2068
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 ...
A method to create a new UDF Terminating Descriptor. Parameters: None. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2087-L2103
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 ...
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.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2105-L2122
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...
Parse the passed in data into a UDF Logical Volume Header Descriptor. Parameters: data - The data to parse. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2137-L2151
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...
A method to create a new UDF Logical Volume Header Descriptor. Parameters: None. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2169-L2184
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...
Parse the passed in data into a UDF Logical Volume Implementation Use. Parameters: data - The data to parse. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2201-L2223
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...
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.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2225-L2243
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...
A method to create a new UDF Logical Volume Implementation Use. Parameters: None. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2245-L2269
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...
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.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2288-L2341
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...
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.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2343-L2363
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...
A method to create a new UDF Logical Volume Integrity Descriptor. Parameters: None. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2383-L2412
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...
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.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2448-L2499
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: ...
A method to generate the string representing this UDF File Set Descriptor. Parameters: None. Returns: A string representing this UDF File Set Descriptor.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2501-L2523
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...
A method to create a new UDF File Set Descriptor. Parameters: None. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2542-L2575
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. ''' ...
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.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2577-L2590
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...
Parse the passed in data into a UDF ICB Tag. Parameters: data - The data to parse. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2607-L2631
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...
A method to generate the string representing this UDF ICB Tag. Parameters: None. Returns: A string representing this UDF ICB Tag.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2633-L2650
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...
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.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2652-L2682
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. ...
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. ...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2709-L2777
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...
A method to generate the string representing this UDF File Entry. Parameters: None. Returns: A string representing this UDF File Entry.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2779-L2805
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...
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...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2824-L2903
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. ...
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...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2923-L2960
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...
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...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L2962-L3005
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...
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.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3007-L3025
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: ...
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.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3042-L3080
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...
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.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3124-L3140
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...
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.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3142-L3182
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...
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...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3184-L3200
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. ...
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.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3202-L3218
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...
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.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3276-L3291
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. ...
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...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3309-L3371
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: ...
A method to generate the string representing this UDF File Identifier Descriptor. Parameters: None. Returns: A string representing this UDF File Identifier Descriptor.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3401-L3429
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...
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...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3448-L3494
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...
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...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/udf.py#L3515-L3531
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...
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...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L746-L785
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): #...
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...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L788-L828
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...
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...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L831-L880
clalancette/pycdlib
pycdlib/headervd.py
PrimaryOrSupplementaryVD.parse
def parse(self, vd, extent_loc): # type: (bytes, int) -> None ''' Parse a Volume Descriptor out of a string. Parameters: vd - The string containing the Volume Descriptor. extent_loc - The location on the ISO of this Volume Descriptor. Returns: Nothing....
python
def parse(self, vd, extent_loc): # type: (bytes, int) -> None ''' Parse a Volume Descriptor out of a string. Parameters: vd - The string containing the Volume Descriptor. extent_loc - The location on the ISO of this Volume Descriptor. Returns: Nothing....
Parse a Volume Descriptor out of a string. Parameters: vd - The string containing the Volume Descriptor. extent_loc - The location on the ISO of this Volume Descriptor. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L83-L195
clalancette/pycdlib
pycdlib/headervd.py
PrimaryOrSupplementaryVD.new
def new(self, flags, 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, version, escape_sequence): # type: (int, bytes, bytes, int, i...
python
def new(self, flags, 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, version, escape_sequence): # type: (int, bytes, bytes, int, i...
Create a new Volume Descriptor. Parameters: flags - The flags to set for this Volume Descriptor (must be 0 for a Primay Volume Descriptor). sys_ident - The system identification string to use on the new ISO. vol_ident - The volume identification string to use on the ...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L197-L334
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...
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.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L336-L392
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...
A method to generate the string representing this Volume Descriptor. Parameters: None. Returns: A string representing this Volume Descriptor.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L394-L446
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 ...
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...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L448-L480
clalancette/pycdlib
pycdlib/headervd.py
PrimaryOrSupplementaryVD.add_rr_ce_entry
def add_rr_ce_entry(self, length): # type: (int) -> Tuple[bool, rockridge.RockRidgeContinuationBlock, int] ''' Add a new Rock Ridge Continuation Entry to this PVD; see track_rr_ce_entry() above for why we track these in the PVD. This method is used to add a new Continuation Entr...
python
def add_rr_ce_entry(self, length): # type: (int) -> Tuple[bool, rockridge.RockRidgeContinuationBlock, int] ''' Add a new Rock Ridge Continuation Entry to this PVD; see track_rr_ce_entry() above for why we track these in the PVD. This method is used to add a new Continuation Entr...
Add a new Rock Ridge Continuation Entry to this PVD; see track_rr_ce_entry() above for why we track these in the PVD. This method is used to add a new Continuation Entry anywhere it fits in the list of Continuation Blocks. If it doesn't fit in any of the existing blocks, a new block fo...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L482-L513
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...
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.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L515-L531
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. ''' ...
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.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L548-L563
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...
Remove bytes from the volume descriptor. Parameters: removal_bytes - The number of bytes to remove. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L565-L579
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 ...
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.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L613-L635
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...
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.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L637-L662
clalancette/pycdlib
pycdlib/headervd.py
PrimaryOrSupplementaryVD.copy_sizes
def copy_sizes(self, othervd): # type: (PrimaryOrSupplementaryVD) -> None ''' Copy the path_tbl_size, path_table_num_extents, and space_size from another volume descriptor. Parameters: othervd - The other volume descriptor to copy from. Returns: Nothing...
python
def copy_sizes(self, othervd): # type: (PrimaryOrSupplementaryVD) -> None ''' Copy the path_tbl_size, path_table_num_extents, and space_size from another volume descriptor. Parameters: othervd - The other volume descriptor to copy from. Returns: Nothing...
Copy the path_tbl_size, path_table_num_extents, and space_size from another volume descriptor. Parameters: othervd - The other volume descriptor to copy from. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L679-L695
clalancette/pycdlib
pycdlib/headervd.py
FileOrTextIdentifier.parse
def parse(self, ident_str): # type: (bytes) -> None ''' Parse a file or text identifier out of a string. Parameters: ident_str - The string to parse the file or text identifier from. Returns: Nothing. ''' if self._initialized: rai...
python
def parse(self, ident_str): # type: (bytes) -> None ''' Parse a file or text identifier out of a string. Parameters: ident_str - The string to parse the file or text identifier from. Returns: Nothing. ''' if self._initialized: rai...
Parse a file or text identifier out of a string. Parameters: ident_str - The string to parse the file or text identifier from. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L904-L921
clalancette/pycdlib
pycdlib/headervd.py
FileOrTextIdentifier.new
def new(self, text): # type: (bytes) -> None ''' Create a new file or text identifier. Parameters: text - The text to store into the identifier. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalEr...
python
def new(self, text): # type: (bytes) -> None ''' Create a new file or text identifier. Parameters: text - The text to store into the identifier. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalEr...
Create a new file or text identifier. Parameters: text - The text to store into the identifier. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L923-L941
clalancette/pycdlib
pycdlib/headervd.py
VolumeDescriptorSetTerminator.parse
def parse(self, vd, extent_loc): # type: (bytes, int) -> None ''' A method to parse a Volume Descriptor Set Terminator out of a string. Parameters: vd - The string to parse. extent_loc - The extent this VDST is currently located at. Returns: Nothing. ...
python
def parse(self, vd, extent_loc): # type: (bytes, int) -> None ''' A method to parse a Volume Descriptor Set Terminator out of a string. Parameters: vd - The string to parse. extent_loc - The extent this VDST is currently located at. Returns: Nothing. ...
A method to parse a Volume Descriptor Set Terminator out of a string. Parameters: vd - The string to parse. extent_loc - The extent this VDST is currently located at. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L978-L1011
clalancette/pycdlib
pycdlib/headervd.py
BootRecord.parse
def parse(self, vd, extent_loc): # type: (bytes, int) -> None ''' A method to parse a Boot Record out of a string. Parameters: vd - The string to parse the Boot Record out of. extent_loc - The extent location this Boot Record is current at. Returns: No...
python
def parse(self, vd, extent_loc): # type: (bytes, int) -> None ''' A method to parse a Boot Record out of a string. Parameters: vd - The string to parse the Boot Record out of. extent_loc - The extent location this Boot Record is current at. Returns: No...
A method to parse a Boot Record out of a string. Parameters: vd - The string to parse the Boot Record out of. extent_loc - The extent location this Boot Record is current at. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L1105-L1135
clalancette/pycdlib
pycdlib/headervd.py
BootRecord.new
def new(self, boot_system_id): # type: (bytes) -> None ''' A method to create a new Boot Record. Parameters: boot_system_id - The system identifier to associate with this Boot Record. Returns: Nothing. ''' if self._init...
python
def new(self, boot_system_id): # type: (bytes) -> None ''' A method to create a new Boot Record. Parameters: boot_system_id - The system identifier to associate with this Boot Record. Returns: Nothing. ''' if self._init...
A method to create a new Boot Record. Parameters: boot_system_id - The system identifier to associate with this Boot Record. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L1137-L1155
clalancette/pycdlib
pycdlib/headervd.py
BootRecord.record
def record(self): # type: () -> bytes ''' A method to generate a string representing this Boot Record. Parameters: None. Returns: A string representing this Boot Record. ''' if not self._initialized: raise pycdlibexception.PyCdlibInt...
python
def record(self): # type: () -> bytes ''' A method to generate a string representing this Boot Record. Parameters: None. Returns: A string representing this Boot Record. ''' if not self._initialized: raise pycdlibexception.PyCdlibInt...
A method to generate a string representing this Boot Record. Parameters: None. Returns: A string representing this Boot Record.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L1157-L1172
clalancette/pycdlib
pycdlib/headervd.py
BootRecord.update_boot_system_use
def update_boot_system_use(self, boot_sys_use): # type: (bytes) -> None ''' A method to update the boot system use field of this Boot Record. Parameters: boot_sys_use - The new boot system use field for this Boot Record. Returns: Nothing. ''' if...
python
def update_boot_system_use(self, boot_sys_use): # type: (bytes) -> None ''' A method to update the boot system use field of this Boot Record. Parameters: boot_sys_use - The new boot system use field for this Boot Record. Returns: Nothing. ''' if...
A method to update the boot system use field of this Boot Record. Parameters: boot_sys_use - The new boot system use field for this Boot Record. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L1174-L1187
clalancette/pycdlib
pycdlib/headervd.py
VersionVolumeDescriptor.parse
def parse(self, data, extent): # type: (bytes, int) -> bool ''' Do a parse of a Version Volume Descriptor. This consists of seeing whether the data is either all zero or starts with 'MKI', and if so, setting the extent location of the Version Volume Descriptor properly. ...
python
def parse(self, data, extent): # type: (bytes, int) -> bool ''' Do a parse of a Version Volume Descriptor. This consists of seeing whether the data is either all zero or starts with 'MKI', and if so, setting the extent location of the Version Volume Descriptor properly. ...
Do a parse of a Version Volume Descriptor. This consists of seeing whether the data is either all zero or starts with 'MKI', and if so, setting the extent location of the Version Volume Descriptor properly. Parameters: data - The potential version data. extent - The location ...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L1234-L1258
clalancette/pycdlib
pycdlib/headervd.py
VersionVolumeDescriptor.new
def new(self, log_block_size): # type: (int) -> None ''' Create a new Version Volume Descriptor. Parameters: log_block_size - The size of one extent. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalE...
python
def new(self, log_block_size): # type: (int) -> None ''' Create a new Version Volume Descriptor. Parameters: log_block_size - The size of one extent. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalE...
Create a new Version Volume Descriptor. Parameters: log_block_size - The size of one extent. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/headervd.py#L1260-L1274
clalancette/pycdlib
pycdlib/eltorito.py
hdmbrcheck
def hdmbrcheck(disk_mbr, sector_count, bootable): # type: (bytes, int, bool) -> int ''' A function to sanity check an El Torito Hard Drive Master Boot Record (HDMBR). On success, it returns the system_type (also known as the partition type) that should be fed into the rest of the El Torito methods. ...
python
def hdmbrcheck(disk_mbr, sector_count, bootable): # type: (bytes, int, bool) -> int ''' A function to sanity check an El Torito Hard Drive Master Boot Record (HDMBR). On success, it returns the system_type (also known as the partition type) that should be fed into the rest of the El Torito methods. ...
A function to sanity check an El Torito Hard Drive Master Boot Record (HDMBR). On success, it returns the system_type (also known as the partition type) that should be fed into the rest of the El Torito methods. On failure, it raises an exception. Parameters: disk_mbr - The data to look in. ...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L873-L966
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoBootInfoTable.parse
def parse(self, vd, datastr, ino): # type: (headervd.PrimaryOrSupplementaryVD, bytes, inode.Inode) -> bool ''' A method to parse a boot info table out of a string. Parameters: vd - The Volume Descriptor associated with this Boot Info Table. datastr - The string to pars...
python
def parse(self, vd, datastr, ino): # type: (headervd.PrimaryOrSupplementaryVD, bytes, inode.Inode) -> bool ''' A method to parse a boot info table out of a string. Parameters: vd - The Volume Descriptor associated with this Boot Info Table. datastr - The string to pars...
A method to parse a boot info table out of a string. Parameters: vd - The Volume Descriptor associated with this Boot Info Table. datastr - The string to parse the boot info table out of. ino - The Inode associated with the boot file. Returns: True if this is a valid...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L52-L76
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoBootInfoTable.new
def new(self, vd, ino, orig_len, csum): # type: (headervd.PrimaryOrSupplementaryVD, inode.Inode, int, int) -> None ''' A method to create a new boot info table. Parameters: vd - The volume descriptor to associate with this boot info table. ino - The Inode associated wi...
python
def new(self, vd, ino, orig_len, csum): # type: (headervd.PrimaryOrSupplementaryVD, inode.Inode, int, int) -> None ''' A method to create a new boot info table. Parameters: vd - The volume descriptor to associate with this boot info table. ino - The Inode associated wi...
A method to create a new boot info table. Parameters: vd - The volume descriptor to associate with this boot info table. ino - The Inode associated with this Boot Info Table. orig_len - The original length of the file before the boot info table was patched into it. csum - Th...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L78-L97
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoBootInfoTable.record
def record(self): # type: () -> bytes ''' A method to generate a string representing this boot info table. Parameters: None. Returns: A string representing this boot info table. ''' if not self._initialized: raise pycdlibexception.Py...
python
def record(self): # type: () -> bytes ''' A method to generate a string representing this boot info table. Parameters: None. Returns: A string representing this boot info table. ''' if not self._initialized: raise pycdlibexception.Py...
A method to generate a string representing this boot info table. Parameters: None. Returns: A string representing this boot info table.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L99-L114
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoValidationEntry._checksum
def _checksum(data): # type: (bytes) -> int ''' A static method to compute the checksum on the ISO. Note that this is *not* a 1's complement checksum; when an addition overflows, the carry bit is discarded, not added to the end. Parameters: data - The data to c...
python
def _checksum(data): # type: (bytes) -> int ''' A static method to compute the checksum on the ISO. Note that this is *not* a 1's complement checksum; when an addition overflows, the carry bit is discarded, not added to the end. Parameters: data - The data to c...
A static method to compute the checksum on the ISO. Note that this is *not* a 1's complement checksum; when an addition overflows, the carry bit is discarded, not added to the end. Parameters: data - The data to compute the checksum over. Returns: The checksum of the ...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L153-L181
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoValidationEntry.parse
def parse(self, valstr): # type: (bytes) -> None ''' A method to parse an El Torito Validation Entry out of a string. Parameters: valstr - The string to parse the El Torito Validation Entry out of. Returns: Nothing. ''' if self._initialized: ...
python
def parse(self, valstr): # type: (bytes) -> None ''' A method to parse an El Torito Validation Entry out of a string. Parameters: valstr - The string to parse the El Torito Validation Entry out of. Returns: Nothing. ''' if self._initialized: ...
A method to parse an El Torito Validation Entry out of a string. Parameters: valstr - The string to parse the El Torito Validation Entry out of. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L183-L216
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoValidationEntry.new
def new(self, platform_id): # type: (int) -> None ''' A method to create a new El Torito Validation Entry. Parameters: platform_id - The platform ID to set for this validation entry. Returns: Nothing. ''' if self._initialized: raise ...
python
def new(self, platform_id): # type: (int) -> None ''' A method to create a new El Torito Validation Entry. Parameters: platform_id - The platform ID to set for this validation entry. Returns: Nothing. ''' if self._initialized: raise ...
A method to create a new El Torito Validation Entry. Parameters: platform_id - The platform ID to set for this validation entry. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L218-L235
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoValidationEntry._record
def _record(self): # type: () -> bytes ''' An internal method to generate a string representing this El Torito Validation Entry. Parameters: None. Returns: String representing this El Torito Validation Entry. ''' return struct.pack(self....
python
def _record(self): # type: () -> bytes ''' An internal method to generate a string representing this El Torito Validation Entry. Parameters: None. Returns: String representing this El Torito Validation Entry. ''' return struct.pack(self....
An internal method to generate a string representing this El Torito Validation Entry. Parameters: None. Returns: String representing this El Torito Validation Entry.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L237-L249
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoEntry.parse
def parse(self, valstr): # type: (bytes) -> None ''' A method to parse an El Torito Entry out of a string. Parameters: valstr - The string to parse the El Torito Entry out of. Returns: Nothing. ''' if self._initialized: raise pycdlib...
python
def parse(self, valstr): # type: (bytes) -> None ''' A method to parse an El Torito Entry out of a string. Parameters: valstr - The string to parse the El Torito Entry out of. Returns: Nothing. ''' if self._initialized: raise pycdlib...
A method to parse an El Torito Entry out of a string. Parameters: valstr - The string to parse the El Torito Entry out of. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L306-L339
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoEntry.new
def new(self, sector_count, load_seg, media_name, system_type, bootable): # type: (int, int, str, int, bool) -> None ''' A method to create a new El Torito Entry. Parameters: sector_count - The number of sectors to assign to this El Torito Entry. load_seg - The load se...
python
def new(self, sector_count, load_seg, media_name, system_type, bootable): # type: (int, int, str, int, bool) -> None ''' A method to create a new El Torito Entry. Parameters: sector_count - The number of sectors to assign to this El Torito Entry. load_seg - The load se...
A method to create a new El Torito Entry. Parameters: sector_count - The number of sectors to assign to this El Torito Entry. load_seg - The load segment address of the boot image. media_name - The name of the media type, one of 'noemul', 'floppy', or 'hdemul'. system_type -...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L341-L390
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoEntry.set_data_location
def set_data_location(self, current_extent, tag_location): # pylint: disable=unused-argument # type: (int, int) -> None ''' A method to update the extent (and RBA) for this entry. Parameters: current_extent - The new extent to set for this entry. Returns: Noth...
python
def set_data_location(self, current_extent, tag_location): # pylint: disable=unused-argument # type: (int, int) -> None ''' A method to update the extent (and RBA) for this entry. Parameters: current_extent - The new extent to set for this entry. Returns: Noth...
A method to update the extent (and RBA) for this entry. Parameters: current_extent - The new extent to set for this entry. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L407-L420
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoEntry.set_inode
def set_inode(self, ino): # type: (inode.Inode) -> None ''' A method to set the Inode associated with this El Torito Entry. Parameters: ino - The Inode object corresponding to this entry. Returns: Nothing. ''' if not self._initialized: ...
python
def set_inode(self, ino): # type: (inode.Inode) -> None ''' A method to set the Inode associated with this El Torito Entry. Parameters: ino - The Inode object corresponding to this entry. Returns: Nothing. ''' if not self._initialized: ...
A method to set the Inode associated with this El Torito Entry. Parameters: ino - The Inode object corresponding to this entry. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L422-L434
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoEntry.record
def record(self): # type: () -> bytes ''' A method to generate a string representing this El Torito Entry. Parameters: None. Returns: String representing this El Torito Entry. ''' if not self._initialized: raise pycdlibexception.PyCd...
python
def record(self): # type: () -> bytes ''' A method to generate a string representing this El Torito Entry. Parameters: None. Returns: String representing this El Torito Entry. ''' if not self._initialized: raise pycdlibexception.PyCd...
A method to generate a string representing this El Torito Entry. Parameters: None. Returns: String representing this El Torito Entry.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L436-L453
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoEntry.set_data_length
def set_data_length(self, length): # type: (int) -> None ''' A method to set the length of data for this El Torito Entry. Parameters: length - The new length for the El Torito Entry. Returns: Nothing. ''' if not self._initialized: ra...
python
def set_data_length(self, length): # type: (int) -> None ''' A method to set the length of data for this El Torito Entry. Parameters: length - The new length for the El Torito Entry. Returns: Nothing. ''' if not self._initialized: ra...
A method to set the length of data for this El Torito Entry. Parameters: length - The new length for the El Torito Entry. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L471-L483
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoSectionHeader.parse
def parse(self, valstr): # type: (bytes) -> None ''' Parse an El Torito section header from a string. Parameters: valstr - The string to parse. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('...
python
def parse(self, valstr): # type: (bytes) -> None ''' Parse an El Torito section header from a string. Parameters: valstr - The string to parse. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('...
Parse an El Torito section header from a string. Parameters: valstr - The string to parse. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L500-L516
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoSectionHeader.new
def new(self, id_string, platform_id): # type: (bytes, int) -> None ''' Create a new El Torito section header. Parameters: id_string - The ID to use for this section header. platform_id - The platform ID for this section header. Returns: Nothing. ...
python
def new(self, id_string, platform_id): # type: (bytes, int) -> None ''' Create a new El Torito section header. Parameters: id_string - The ID to use for this section header. platform_id - The platform ID for this section header. Returns: Nothing. ...
Create a new El Torito section header. Parameters: id_string - The ID to use for this section header. platform_id - The platform ID for this section header. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L518-L538
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoSectionHeader.add_parsed_entry
def add_parsed_entry(self, entry): # type: (EltoritoEntry) -> None ''' A method to add a parsed entry to the list of entries of this header. If the number of parsed entries exceeds what was expected from the initial parsing of the header, this method will throw an Exception. ...
python
def add_parsed_entry(self, entry): # type: (EltoritoEntry) -> None ''' A method to add a parsed entry to the list of entries of this header. If the number of parsed entries exceeds what was expected from the initial parsing of the header, this method will throw an Exception. ...
A method to add a parsed entry to the list of entries of this header. If the number of parsed entries exceeds what was expected from the initial parsing of the header, this method will throw an Exception. Parameters: entry - The EltoritoEntry object to add to the list of entries. ...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L540-L558
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoSectionHeader.add_new_entry
def add_new_entry(self, entry): # type: (EltoritoEntry) -> None ''' A method to add a completely new entry to the list of entries of this header. Parameters: entry - The new EltoritoEntry object to add to the list of entries. Returns: Nothing. '...
python
def add_new_entry(self, entry): # type: (EltoritoEntry) -> None ''' A method to add a completely new entry to the list of entries of this header. Parameters: entry - The new EltoritoEntry object to add to the list of entries. Returns: Nothing. '...
A method to add a completely new entry to the list of entries of this header. Parameters: entry - The new EltoritoEntry object to add to the list of entries. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L560-L576
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoSectionHeader.record
def record(self): # type: () -> bytes ''' Get a string representing this El Torito section header. Parameters: None. Returns: A string representing this El Torito section header. ''' if not self._initialized: raise pycdlibexception.P...
python
def record(self): # type: () -> bytes ''' Get a string representing this El Torito section header. Parameters: None. Returns: A string representing this El Torito section header. ''' if not self._initialized: raise pycdlibexception.P...
Get a string representing this El Torito section header. Parameters: None. Returns: A string representing this El Torito section header.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L594-L614
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoBootCatalog.parse
def parse(self, valstr): # type: (bytes) -> bool ''' A method to parse an El Torito Boot Catalog out of a string. Parameters: valstr - The string to parse the El Torito Boot Catalog out of. Returns: Nothing. ''' if self._initialized: ...
python
def parse(self, valstr): # type: (bytes) -> bool ''' A method to parse an El Torito Boot Catalog out of a string. Parameters: valstr - The string to parse the El Torito Boot Catalog out of. Returns: Nothing. ''' if self._initialized: ...
A method to parse an El Torito Boot Catalog out of a string. Parameters: valstr - The string to parse the El Torito Boot Catalog out of. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L641-L710
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoBootCatalog.new
def new(self, br, ino, sector_count, load_seg, media_name, system_type, platform_id, bootable): # type: (headervd.BootRecord, inode.Inode, int, int, str, int, int, bool) -> None ''' A method to create a new El Torito Boot Catalog. Parameters: br - The boot record th...
python
def new(self, br, ino, sector_count, load_seg, media_name, system_type, platform_id, bootable): # type: (headervd.BootRecord, inode.Inode, int, int, str, int, int, bool) -> None ''' A method to create a new El Torito Boot Catalog. Parameters: br - The boot record th...
A method to create a new El Torito Boot Catalog. Parameters: br - The boot record that this El Torito Boot Catalog is associated with. ino - The Inode to associate with the initial entry. sector_count - The number of sectors for the initial entry. load_seg - The load segment...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L712-L743
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoBootCatalog.add_section
def add_section(self, ino, sector_count, load_seg, media_name, system_type, efi, bootable): # type: (inode.Inode, int, int, str, int, bool, bool) -> None ''' A method to add an section header and entry to this Boot Catalog. Parameters: ino - The Inode object...
python
def add_section(self, ino, sector_count, load_seg, media_name, system_type, efi, bootable): # type: (inode.Inode, int, int, str, int, bool, bool) -> None ''' A method to add an section header and entry to this Boot Catalog. Parameters: ino - The Inode object...
A method to add an section header and entry to this Boot Catalog. Parameters: ino - The Inode object to associate with the new Entry. sector_count - The number of sectors to assign to the new Entry. load_seg - The load segment address of the boot image. media_name - The name...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L745-L790
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoBootCatalog.record
def record(self): # type: () -> bytes ''' A method to generate a string representing this El Torito Boot Catalog. Parameters: None. Returns: A string representing this El Torito Boot Catalog. ''' if not self._initialized: raise pycdl...
python
def record(self): # type: () -> bytes ''' A method to generate a string representing this El Torito Boot Catalog. Parameters: None. Returns: A string representing this El Torito Boot Catalog. ''' if not self._initialized: raise pycdl...
A method to generate a string representing this El Torito Boot Catalog. Parameters: None. Returns: A string representing this El Torito Boot Catalog.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L792-L813
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoBootCatalog.add_dirrecord
def add_dirrecord(self, rec): # type: (Union[dr.DirectoryRecord, udfmod.UDFFileEntry]) -> None ''' A method to set the Directory Record associated with this Boot Catalog. Parameters: rec - The DirectoryRecord object to associate with this Boot Catalog. Returns: ...
python
def add_dirrecord(self, rec): # type: (Union[dr.DirectoryRecord, udfmod.UDFFileEntry]) -> None ''' A method to set the Directory Record associated with this Boot Catalog. Parameters: rec - The DirectoryRecord object to associate with this Boot Catalog. Returns: ...
A method to set the Directory Record associated with this Boot Catalog. Parameters: rec - The DirectoryRecord object to associate with this Boot Catalog. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L815-L828
clalancette/pycdlib
pycdlib/eltorito.py
EltoritoBootCatalog.update_catalog_extent
def update_catalog_extent(self, current_extent): # type: (int) -> None ''' A method to update the extent associated with this Boot Catalog. Parameters: current_extent - New extent to associate with this Boot Catalog Returns: Nothing. ''' if not ...
python
def update_catalog_extent(self, current_extent): # type: (int) -> None ''' A method to update the extent associated with this Boot Catalog. Parameters: current_extent - New extent to associate with this Boot Catalog Returns: Nothing. ''' if not ...
A method to update the extent associated with this Boot Catalog. Parameters: current_extent - New extent to associate with this Boot Catalog Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/eltorito.py#L857-L870
clalancette/pycdlib
pycdlib/pycdlib.py
_check_d1_characters
def _check_d1_characters(name): # type: (bytes) -> None ''' A function to check that a name only uses d1 characters as defined by ISO9660. Parameters: name - The name to check. Returns: Nothing. ''' bytename = bytearray(name) for char in bytename: if char not in _allow...
python
def _check_d1_characters(name): # type: (bytes) -> None ''' A function to check that a name only uses d1 characters as defined by ISO9660. Parameters: name - The name to check. Returns: Nothing. ''' bytename = bytearray(name) for char in bytename: if char not in _allow...
A function to check that a name only uses d1 characters as defined by ISO9660. Parameters: name - The name to check. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/pycdlib.py#L68-L81
clalancette/pycdlib
pycdlib/pycdlib.py
_split_iso9660_filename
def _split_iso9660_filename(fullname): # type: (bytes) -> Tuple[bytes, bytes, bytes] ''' A function to split an ISO 9660 filename into its constituent parts. This is the name, the extension, and the version number. Parameters: fullname - The name to split. Returns: A tuple containing...
python
def _split_iso9660_filename(fullname): # type: (bytes) -> Tuple[bytes, bytes, bytes] ''' A function to split an ISO 9660 filename into its constituent parts. This is the name, the extension, and the version number. Parameters: fullname - The name to split. Returns: A tuple containing...
A function to split an ISO 9660 filename into its constituent parts. This is the name, the extension, and the version number. Parameters: fullname - The name to split. Returns: A tuple containing the name, extension, and version.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/pycdlib.py#L84-L110
clalancette/pycdlib
pycdlib/pycdlib.py
_check_iso9660_filename
def _check_iso9660_filename(fullname, interchange_level): # type: (bytes, int) -> None ''' A function to check that a file identifier conforms to the ISO9660 rules for a particular interchange level. Parameters: fullname - The name to check. interchange_level - The interchange level to ch...
python
def _check_iso9660_filename(fullname, interchange_level): # type: (bytes, int) -> None ''' A function to check that a file identifier conforms to the ISO9660 rules for a particular interchange level. Parameters: fullname - The name to check. interchange_level - The interchange level to ch...
A function to check that a file identifier conforms to the ISO9660 rules for a particular interchange level. Parameters: fullname - The name to check. interchange_level - The interchange level to check against. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/pycdlib.py#L113-L171
clalancette/pycdlib
pycdlib/pycdlib.py
_check_iso9660_directory
def _check_iso9660_directory(fullname, interchange_level): # type: (bytes, int) -> None ''' A function to check that an directory identifier conforms to the ISO9660 rules for a particular interchange level. Parameters: fullname - The name to check. interchange_level - The interchange leve...
python
def _check_iso9660_directory(fullname, interchange_level): # type: (bytes, int) -> None ''' A function to check that an directory identifier conforms to the ISO9660 rules for a particular interchange level. Parameters: fullname - The name to check. interchange_level - The interchange leve...
A function to check that an directory identifier conforms to the ISO9660 rules for a particular interchange level. Parameters: fullname - The name to check. interchange_level - The interchange level to check against. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/pycdlib.py#L174-L215
clalancette/pycdlib
pycdlib/pycdlib.py
_interchange_level_from_filename
def _interchange_level_from_filename(fullname): # type: (bytes) -> int ''' A function to determine the ISO interchange level from the filename. In theory, there are 3 levels, but in practice we only deal with level 1 and level 3. Parameters: name - The name to use to determine the intercha...
python
def _interchange_level_from_filename(fullname): # type: (bytes) -> int ''' A function to determine the ISO interchange level from the filename. In theory, there are 3 levels, but in practice we only deal with level 1 and level 3. Parameters: name - The name to use to determine the intercha...
A function to determine the ISO interchange level from the filename. In theory, there are 3 levels, but in practice we only deal with level 1 and level 3. Parameters: name - The name to use to determine the interchange level. Returns: The interchange level determined from this filename.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/pycdlib.py#L218-L249
clalancette/pycdlib
pycdlib/pycdlib.py
_interchange_level_from_directory
def _interchange_level_from_directory(name): # type: (bytes) -> int ''' A function to determine the ISO interchange level from the directory name. In theory, there are 3 levels, but in practice we only deal with level 1 and level 3. Parameters: name - The name to use to determine the inter...
python
def _interchange_level_from_directory(name): # type: (bytes) -> int ''' A function to determine the ISO interchange level from the directory name. In theory, there are 3 levels, but in practice we only deal with level 1 and level 3. Parameters: name - The name to use to determine the inter...
A function to determine the ISO interchange level from the directory name. In theory, there are 3 levels, but in practice we only deal with level 1 and level 3. Parameters: name - The name to use to determine the interchange level. Returns: The interchange level determined from this filename.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/pycdlib.py#L252-L273
clalancette/pycdlib
pycdlib/pycdlib.py
_reassign_vd_dirrecord_extents
def _reassign_vd_dirrecord_extents(vd, current_extent): # type: (headervd.PrimaryOrSupplementaryVD, int) -> Tuple[int, List[inode.Inode]] ''' An internal helper method for reassign_extents that assigns extents to directory records for the passed in Volume Descriptor. The current extent is passed in...
python
def _reassign_vd_dirrecord_extents(vd, current_extent): # type: (headervd.PrimaryOrSupplementaryVD, int) -> Tuple[int, List[inode.Inode]] ''' An internal helper method for reassign_extents that assigns extents to directory records for the passed in Volume Descriptor. The current extent is passed in...
An internal helper method for reassign_extents that assigns extents to directory records for the passed in Volume Descriptor. The current extent is passed in, and this function returns the extent after the last one it assigned. Parameters: vd - The volume descriptor on which to operate. curr...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/pycdlib.py#L276-L395
clalancette/pycdlib
pycdlib/pycdlib.py
_yield_children
def _yield_children(rec): # type: (dr.DirectoryRecord) -> Generator ''' An internal function to gather and yield all of the children of a Directory Record. Parameters: rec - The Directory Record to get all of the children from (must be a directory) Yields: Children of this ...
python
def _yield_children(rec): # type: (dr.DirectoryRecord) -> Generator ''' An internal function to gather and yield all of the children of a Directory Record. Parameters: rec - The Directory Record to get all of the children from (must be a directory) Yields: Children of this ...
An internal function to gather and yield all of the children of a Directory Record. Parameters: rec - The Directory Record to get all of the children from (must be a directory) Yields: Children of this Directory Record. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/pycdlib.py#L417-L458
clalancette/pycdlib
pycdlib/pycdlib.py
_assign_udf_desc_extents
def _assign_udf_desc_extents(descs, start_extent): # type: (PyCdlib._UDFDescriptors, int) -> None ''' An internal function to assign a consecutive sequence of extents for the given set of UDF Descriptors, starting at the given extent. Parameters: descs - The PyCdlib._UDFDescriptors object to a...
python
def _assign_udf_desc_extents(descs, start_extent): # type: (PyCdlib._UDFDescriptors, int) -> None ''' An internal function to assign a consecutive sequence of extents for the given set of UDF Descriptors, starting at the given extent. Parameters: descs - The PyCdlib._UDFDescriptors object to a...
An internal function to assign a consecutive sequence of extents for the given set of UDF Descriptors, starting at the given extent. Parameters: descs - The PyCdlib._UDFDescriptors object to assign extents for. start_extent - The starting extent to assign from. Returns: Nothing.
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/pycdlib.py#L461-L491
clalancette/pycdlib
pycdlib/pycdlib.py
_find_dr_record_by_name
def _find_dr_record_by_name(vd, path, encoding): # type: (headervd.PrimaryOrSupplementaryVD, bytes, str) -> dr.DirectoryRecord ''' An internal function to find an directory record on the ISO given an ISO or Joliet path. If the entry is found, it returns the directory record object corresponding to ...
python
def _find_dr_record_by_name(vd, path, encoding): # type: (headervd.PrimaryOrSupplementaryVD, bytes, str) -> dr.DirectoryRecord ''' An internal function to find an directory record on the ISO given an ISO or Joliet path. If the entry is found, it returns the directory record object corresponding to ...
An internal function to find an directory record on the ISO given an ISO or Joliet path. If the entry is found, it returns the directory record object corresponding to that entry. If the entry could not be found, a pycdlibexception.PyCdlibInvalidInput exception is raised. Parameters: vd - The Vo...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/pycdlib.py#L494-L567
clalancette/pycdlib
pycdlib/pycdlib.py
PyCdlibIO.read
def read(self, size=None): # type: (Optional[int]) -> bytes ''' A method to read and return up to size bytes. Parameters: size - Optional parameter to read size number of bytes; if None or negative, all remaining bytes in the file will be read Returns: ...
python
def read(self, size=None): # type: (Optional[int]) -> bytes ''' A method to read and return up to size bytes. Parameters: size - Optional parameter to read size number of bytes; if None or negative, all remaining bytes in the file will be read Returns: ...
A method to read and return up to size bytes. Parameters: size - Optional parameter to read size number of bytes; if None or negative, all remaining bytes in the file will be read Returns: The number of bytes requested or the rest of the data left in the file, ...
https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/pycdlib.py#L594-L620