Code
stringlengths
103
85.9k
Summary
listlengths
0
94
Please provide a description of the function: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. Retur...
[]
Please provide a description of the function: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. ...
[]
Please provide a description of the function: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. ''...
[]
Please provide a description of the function: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.PyCdl...
[]
Please provide a description of the function: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. ''' ...
[]
Please provide a description of the function: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. R...
[]
Please provide a description of the function: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 representi...
[]
Please provide a description of the function: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 ...
[]
Please provide a description of the function: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 cu...
[]
Please provide a description of the function: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. ...
[]
Please provide a description of the function:def new(self): # type: () -> None ''' A method to create a new UDF Anchor Volume Structure. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInte...
[]
Please provide a description of the function: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 ...
[]
Please provide a description of the function: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 py...
[]
Please provide a description of the function: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._initial...
[]
Please provide a description of the function:def new(self): # type: () -> None ''' A method to create a new UDF Timestamp. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF...
[]
Please provide a description of the function: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 py...
[]
Please provide a description of the function: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._initial...
[]
Please provide a description of the function: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 ...
[]
Please provide a description of the function: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 ...
[]
Please provide a description of the function: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. ...
[]
Please provide a description of the function:def new(self): # type: () -> None ''' A method to create a new UDF Primary Volume Descriptor. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibIn...
[]
Please provide a description of the function: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. ...
[]
Please provide a description of the function: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 ...
[]
Please provide a description of the function: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: ...
[]
Please provide a description of the function: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 th...
[]
Please provide a description of the function:def new(self): # type: () -> None ''' A method to create a new UDF Implementation Use Volume Descriptor. Parameters: None: Returns: Nothing. ''' if self._initialized: raise pycdlibexceptio...
[]
Please provide a description of the function: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: ...
[]
Please provide a description of the function: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 descripto...
[]
Please provide a description of the function: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 Descript...
[]
Please provide a description of the function:def new(self): # type: () -> None ''' A method to create a new UDF Partition Volume Descriptor. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlib...
[]
Please provide a description of the function: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: ...
[]
Please provide a description of the function: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: rais...
[]
Please provide a description of the function:def new(self): # type: () -> None ''' A method to create a new UDF Partition Map. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError(...
[]
Please provide a description of the function: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 pycd...
[]
Please provide a description of the function: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...
[]
Please provide a description of the function: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.P...
[]
Please provide a description of the function: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. ...
[]
Please provide a description of the function: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 ...
[]
Please provide a description of the function: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. ...
[]
Please provide a description of the function:def new(self): # type: () -> None ''' A method to create a new UDF Logical Volume Descriptor. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibIn...
[]
Please provide a description of the function: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 Inte...
[]
Please provide a description of the function: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 descript...
[]
Please provide a description of the function: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 ob...
[]
Please provide a description of the function: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. ...
[]
Please provide a description of the function:def new(self): # type: () -> None ''' A method to create a new UDF Terminating Descriptor. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInter...
[]
Please provide a description of the function: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...
[]
Please provide a description of the function: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._initialize...
[]
Please provide a description of the function: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.Py...
[]
Please provide a description of the function: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._initializ...
[]
Please provide a description of the function: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 Impl...
[]
Please provide a description of the function: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.P...
[]
Please provide a description of the function: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 d...
[]
Please provide a description of the function: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 In...
[]
Please provide a description of the function: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...
[]
Please provide a description of the function: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 curren...
[]
Please provide a description of the function: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. ''' ...
[]
Please provide a description of the function:def new(self): # type: () -> None ''' A method to create a new UDF File Set Descriptor. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternal...
[]
Please provide a description of the function: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. ...
[]
Please provide a description of the function: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 pycd...
[]
Please provide a description of the function: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...
[]
Please provide a description of the function: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. ''' ...
[]
Please provide a description of the function: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...
[]
Please provide a description of the function: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._initi...
[]
Please provide a description of the function: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...
[]
Please provide a description of the function: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 ...
[]
Please provide a description of the function: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 Ide...
[]
Please provide a description of the function: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_ext...
[]
Please provide a description of the function: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. ...
[]
Please provide a description of the function: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._in...
[]
Please provide a description of the function: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. Ret...
[]
Please provide a description of the function: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 th...
[]
Please provide a description of the function: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: ...
[]
Please provide a description of the function: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 UDFFileIden...
[]
Please provide a description of the function: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...
[]
Please provide a description of the function: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. ...
[]
Please provide a description of the function: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. isp...
[]
Please provide a description of the function: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. ...
[]
Please provide a description of the function: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: (byt...
[]
Please provide a description of the function: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...
[]
Please provide a description of the function: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...
[]
Please provide a description of the function: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 D...
[]
Please provide a description of the function: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...
[]
Please provide a description of the function: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...
[]
Please provide a description of the function: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....
[]
Please provide a description of the function: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 prov...
[]
Please provide a description of the function: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 ...
[]
Please provide a description of the function: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. ...
[]
Please provide a description of the function: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. ...
[]
Please provide a description of the function: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 ...
[]
Please provide a description of the function: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. ...
[]
Please provide a description of the function: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 Descri...
[]
Please provide a description of the function: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...
[]
Please provide a description of the function: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. ''' ...
[]
Please provide a description of the function: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: ...
[]
Please provide a description of the function: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 loc...
[]
Please provide a description of the function: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 Recor...
[]
Please provide a description of the function: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: ...
[]
Please provide a description of the function: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: ...
[]
Please provide a description of the function: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. Retu...
[]
Please provide a description of the function: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...
[]