_id
stringlengths
2
7
title
stringlengths
1
88
partition
stringclasses
3 values
text
stringlengths
75
19.8k
language
stringclasses
1 value
meta_information
dict
q236700
RRSPRecord.record
train
def record(self): # type: () -> bytes ''' Generate a string representing the Rock Ridge Sharing Protocol record. Parameters: None. Returns: String containing the Rock Ridge record. ''' if not self._initialized: raise pycdlibexception...
python
{ "resource": "" }
q236701
RRRRRecord.new
train
def new(self): # type: () -> None ''' Create a new Rock Ridge Rock Ridge record. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('RR record already initialized!') sel...
python
{ "resource": "" }
q236702
RRRRRecord.append_field
train
def append_field(self, fieldname): # type: (str) -> None ''' Mark a field as present in the Rock Ridge records. Parameters: fieldname - The name of the field to mark as present; should be one of 'PX', 'PN', 'SL', 'NM', 'CL', 'PL', 'RE', or 'TF'. Ret...
python
{ "resource": "" }
q236703
RRRRRecord.record
train
def record(self): # type: () -> bytes ''' Generate a string representing the Rock Ridge Rock Ridge record. Parameters: None. Returns: String containing the Rock Ridge record. ''' if not self._initialized: raise pycdlibexception.PyCdl...
python
{ "resource": "" }
q236704
RRCERecord.parse
train
def parse(self, rrstr): # type: (bytes) -> None ''' Parse a Rock Ridge Continuation Entry record out of a string. Parameters: rrstr - The string to parse the record out of. Returns: Nothing. ''' if self._initialized: raise pycdlibexc...
python
{ "resource": "" }
q236705
RRCERecord.new
train
def new(self): # type: () -> None ''' Create a new Rock Ridge Continuation Entry record. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('CE record already initialized!') ...
python
{ "resource": "" }
q236706
RRCERecord.update_extent
train
def update_extent(self, extent): # type: (int) -> None ''' Update the extent for this CE record. Parameters: extent - The new extent for this CE record. Returns: Nothing. ''' if not self._initialized: raise pycdlibexception.PyCdlibIn...
python
{ "resource": "" }
q236707
RRCERecord.update_offset
train
def update_offset(self, offset): # type: (int) -> None ''' Update the offset for this CE record. Parameters: extent - The new offset for this CE record. Returns: Nothing. ''' if not self._initialized: raise pycdlibexception.PyCdlibIn...
python
{ "resource": "" }
q236708
RRCERecord.record
train
def record(self): # type: () -> bytes ''' Generate a string representing the Rock Ridge Continuation Entry record. Parameters: None. Returns: String containing the Rock Ridge record. ''' if not self._initialized: raise pycdlibexcepti...
python
{ "resource": "" }
q236709
RRPXRecord.parse
train
def parse(self, rrstr): # type: (bytes) -> int ''' Parse a Rock Ridge POSIX File Attributes record out of a string. Parameters: rrstr - The string to parse the record out of. Returns: A string representing the RR version, either 1.09 or 1.12. ''' ...
python
{ "resource": "" }
q236710
RRPXRecord.new
train
def new(self, mode): # type: (int) -> None ''' Create a new Rock Ridge POSIX File Attributes record. Parameters: mode - The Unix file mode for this record. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInt...
python
{ "resource": "" }
q236711
RRPXRecord.record
train
def record(self, rr_version): # type: (str) -> bytes ''' Generate a string representing the Rock Ridge POSIX File Attributes record. Parameters: rr_version - The Rock Ridge version to use. Returns: String containing the Rock Ridge record. ''' ...
python
{ "resource": "" }
q236712
RRERRecord.parse
train
def parse(self, rrstr): # type: (bytes) -> None ''' Parse a Rock Ridge Extensions Reference record out of a string. Parameters: rrstr - The string to parse the record out of. Returns: Nothing. ''' if self._initialized: raise pycdlibe...
python
{ "resource": "" }
q236713
RRERRecord.new
train
def new(self, ext_id, ext_des, ext_src): # type: (bytes, bytes, bytes) -> None ''' Create a new Rock Ridge Extensions Reference record. Parameters: ext_id - The extension identifier to use. ext_des - The extension descriptor to use. ext_src - The extension spe...
python
{ "resource": "" }
q236714
RRERRecord.record
train
def record(self): # type: () -> bytes ''' Generate a string representing the Rock Ridge Extensions Reference record. Parameters: None. Returns: String containing the Rock Ridge record. ''' if not self._initialized: raise pycd...
python
{ "resource": "" }
q236715
RRERRecord.length
train
def length(ext_id, ext_des, ext_src): # type: (bytes, bytes, bytes) -> int ''' Static method to return the length of the Rock Ridge Extensions Reference record. Parameters: ext_id - The extension identifier to use. ext_des - The extension descriptor to use. ...
python
{ "resource": "" }
q236716
RRESRecord.new
train
def new(self, extension_sequence): # type: (int) -> None ''' Create a new Rock Ridge Extension Selector record. Parameters: extension_sequence - The sequence number of this extension. Returns: Nothing. ''' if self._initialized: raise...
python
{ "resource": "" }
q236717
RRESRecord.record
train
def record(self): # type: () -> bytes ''' Generate a string representing the Rock Ridge Extension Selector record. Parameters: None. Returns: String containing the Rock Ridge record. ''' if not self._initialized: raise pycdlibexcepti...
python
{ "resource": "" }
q236718
RRPNRecord.parse
train
def parse(self, rrstr): # type: (bytes) -> None ''' Parse a Rock Ridge POSIX Device Number record out of a string. Parameters: rrstr - The string to parse the record out of. Returns: Nothing. ''' if self._initialized: raise pycdlibex...
python
{ "resource": "" }
q236719
RRPNRecord.new
train
def new(self, dev_t_high, dev_t_low): # type: (int, int) -> None ''' Create a new Rock Ridge POSIX device number record. Parameters: dev_t_high - The high-order 32-bits of the device number. dev_t_low - The low-order 32-bits of the device number. Returns: ...
python
{ "resource": "" }
q236720
RRPNRecord.record
train
def record(self): # type: () -> bytes ''' Generate a string representing the Rock Ridge POSIX Device Number record. Parameters: None. Returns: String containing the Rock Ridge record. ''' if not self._initialized: raise pycdl...
python
{ "resource": "" }
q236721
RRSLRecord.parse
train
def parse(self, rrstr): # type: (bytes) -> None ''' Parse a Rock Ridge Symbolic Link record out of a string. Parameters: rrstr - The string to parse the record out of. Returns: Nothing. ''' if self._initialized: raise pycdlibexceptio...
python
{ "resource": "" }
q236722
RRSLRecord.add_component
train
def add_component(self, symlink_comp): # type: (bytes) -> None ''' Add a new component to this symlink record. Parameters: symlink_comp - The string to add to this symlink record. Returns: Nothing. ''' if not self._initialized: raise...
python
{ "resource": "" }
q236723
RRSLRecord.current_length
train
def current_length(self): # type: () -> int ''' Calculate the current length of this symlink record. Parameters: None. Returns: Length of this symlink record. ''' if not self._initialized: raise pycdlibexception.PyCdlibInternalError(...
python
{ "resource": "" }
q236724
RRSLRecord.record
train
def record(self): # type: () -> bytes ''' Generate a string representing the Rock Ridge Symbolic Link record. Parameters: None. Returns: String containing the Rock Ridge record. ''' if not self._initialized: raise pycdlibexception.Py...
python
{ "resource": "" }
q236725
RRSLRecord.name
train
def name(self): # type: () -> bytes ''' Generate a string that contains all components of the symlink. Parameters: None Returns: String containing all components of the symlink. ''' if not self._initialized: raise pycdlibexception.Py...
python
{ "resource": "" }
q236726
RRSLRecord.set_last_component_continued
train
def set_last_component_continued(self): # type: () -> None ''' Set the previous component of this SL record to continued. Parameters: None. Returns: Nothing. ''' if not self._initialized: raise pycdlibexception.PyCdlibInternalError('...
python
{ "resource": "" }
q236727
RRSLRecord.last_component_continued
train
def last_component_continued(self): # type: () -> bool ''' Determines whether the previous component of this SL record is a continued one or not. Parameters: None. Returns: True if the previous component of this SL record is continued, False otherwise. ...
python
{ "resource": "" }
q236728
RRSLRecord.length
train
def length(symlink_components): # type: (List[bytes]) -> int ''' Static method to return the length of the Rock Ridge Symbolic Link record. Parameters: symlink_components - A list containing a string for each of the symbolic link components...
python
{ "resource": "" }
q236729
RRNMRecord.parse
train
def parse(self, rrstr): # type: (bytes) -> None ''' Parse a Rock Ridge Alternate Name record out of a string. Parameters: rrstr - The string to parse the record out of. Returns: Nothing. ''' if self._initialized: raise pycdlibexcepti...
python
{ "resource": "" }
q236730
RRNMRecord.new
train
def new(self, rr_name): # type: (bytes) -> None ''' Create a new Rock Ridge Alternate Name record. Parameters: rr_name - The name for the new record. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalE...
python
{ "resource": "" }
q236731
RRNMRecord.record
train
def record(self): # type: () -> bytes ''' Generate a string representing the Rock Ridge Alternate Name record. Parameters: None. Returns: String containing the Rock Ridge record. ''' if not self._initialized: raise pycdlibexception.P...
python
{ "resource": "" }
q236732
RRCLRecord.parse
train
def parse(self, rrstr): # type: (bytes) -> None ''' Parse a Rock Ridge Child Link record out of a string. Parameters: rrstr - The string to parse the record out of. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.P...
python
{ "resource": "" }
q236733
RRCLRecord.new
train
def new(self): # type: () -> None ''' Create a new Rock Ridge Child Link record. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('CL record already initialized!') sel...
python
{ "resource": "" }
q236734
RRCLRecord.set_log_block_num
train
def set_log_block_num(self, bl): # type: (int) -> None ''' Set the logical block number for the child. Parameters: bl - Logical block number of the child. Returns: Nothing. ''' if not self._initialized: raise pycdlibexception.PyCdlib...
python
{ "resource": "" }
q236735
RRPLRecord.parse
train
def parse(self, rrstr): # type: (bytes) -> None ''' Parse a Rock Ridge Parent Link record out of a string. Parameters: rrstr - The string to parse the record out of. Returns: Nothing. ''' if self._initialized: raise pycdlibexception....
python
{ "resource": "" }
q236736
RRPLRecord.new
train
def new(self): # type: () -> None ''' Generate a string representing the Rock Ridge Parent Link record. Parameters: None. Returns: String containing the Rock Ridge record. ''' if self._initialized: raise pycdlibexception.PyCdlibInter...
python
{ "resource": "" }
q236737
RRPLRecord.set_log_block_num
train
def set_log_block_num(self, bl): # type: (int) -> None ''' Set the logical block number for the parent. Parameters: bl - Logical block number of the parent. Returns: Nothing. ''' if not self._initialized: raise pycdlibexception.PyCdl...
python
{ "resource": "" }
q236738
RRTFRecord.parse
train
def parse(self, rrstr): # type: (bytes) -> None ''' Parse a Rock Ridge Time Stamp record out of a string. Parameters: rrstr - The string to parse the record out of. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.P...
python
{ "resource": "" }
q236739
RRTFRecord.new
train
def new(self, time_flags): # type: (int) -> None ''' Create a new Rock Ridge Time Stamp record. Parameters: time_flags - The flags to use for this time stamp record. Returns: Nothing. ''' if self._initialized: raise pycdlibexception....
python
{ "resource": "" }
q236740
RRTFRecord.record
train
def record(self): # type: () -> bytes ''' Generate a string representing the Rock Ridge Time Stamp record. Parameters: None. Returns: String containing the Rock Ridge record. ''' if not self._initialized: raise pycdlibexception.PyCdl...
python
{ "resource": "" }
q236741
RRTFRecord.length
train
def length(time_flags): # type: (int) -> int ''' Static method to return the length of the Rock Ridge Time Stamp record. Parameters: time_flags - Integer representing the flags to use. Returns: The length of this record in bytes. ''' tf_...
python
{ "resource": "" }
q236742
RRSFRecord.parse
train
def parse(self, rrstr): # type: (bytes) -> None ''' Parse a Rock Ridge Sparse File record out of a string. Parameters: rrstr - The string to parse the record out of. Returns: Nothing. ''' if self._initialized: raise pycdlibexception....
python
{ "resource": "" }
q236743
RRSFRecord.new
train
def new(self, file_size_high, file_size_low, table_depth): # type: (Optional[int], int, Optional[int]) -> None ''' Create a new Rock Ridge Sparse File record. Parameters: file_size_high - The high-order 32-bits of the file size. file_size_low - The low-order 32-bits of...
python
{ "resource": "" }
q236744
RRSFRecord.record
train
def record(self): # type: () -> bytes ''' Generate a string representing the Rock Ridge Sparse File record. Parameters: None. Returns: String containing the Rock Ridge record. ''' if not self._initialized: raise pycdlibexception.PyCd...
python
{ "resource": "" }
q236745
RRRERecord.record
train
def record(self): # type: () -> bytes ''' Generate a string representing the Rock Ridge Relocated Directory record. Parameters: None. Returns: String containing the Rock Ridge record. ''' if not self._initialized: raise pycdl...
python
{ "resource": "" }
q236746
RRSTRecord.parse
train
def parse(self, rrstr): # type: (bytes) -> None ''' Parse a Rock Ridge System Terminator record out of a string. Parameters: rrstr - The string to parse the record out of. Returns: Nothing. ''' if self._initialized: raise pycdlibexce...
python
{ "resource": "" }
q236747
RRSTRecord.record
train
def record(self): # type: () -> bytes ''' Generate a string representing the Rock Ridge System Terminator record. Parameters: None. Returns: String containing the Rock Ridge record. ''' if not self._initialized: raise pycdlib...
python
{ "resource": "" }
q236748
RRPDRecord.parse
train
def parse(self, rrstr): # type: (bytes) -> None ''' Parse a Rock Ridge Platform Dependent record out of a string. Parameters: rrstr - The string to parse the record out of. Returns: Nothing. ''' if self._initialized: raise pycdlibexc...
python
{ "resource": "" }
q236749
RRPDRecord.new
train
def new(self): # type: () -> None ''' Create a new Rock Ridge Platform Dependent record. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('PD record already initialized!') ...
python
{ "resource": "" }
q236750
RRPDRecord.record
train
def record(self): # type: () -> bytes ''' Generate a string representing the Rock Ridge Platform Dependent record. Parameters: None. Returns: String containing the Rock Ridge record. ''' if not self._initialized: raise pycdli...
python
{ "resource": "" }
q236751
RockRidge.has_entry
train
def has_entry(self, name): # type: (str) -> bool ''' An internal method to tell if we have already parsed an entry of the named type. Parameters: name - The name of the entry to check. Returns: True if we have already parsed an entry of the named type, ...
python
{ "resource": "" }
q236752
RockRidge._record
train
def _record(self, entries): # type: (RockRidgeEntries) -> bytes ''' Return a string representing the Rock Ridge entry. Parameters: entries - The dr_entries or ce_entries to generate a record for. Returns: A string representing the Rock Ridge entry. ''' ...
python
{ "resource": "" }
q236753
RockRidge.record_dr_entries
train
def record_dr_entries(self): # type: () -> bytes ''' Return a string representing the Rock Ridge entries in the Directory Record. Parameters: None. Returns: A string representing the Rock Ridge entry. ''' if not self._initialized: ra...
python
{ "resource": "" }
q236754
RockRidge.record_ce_entries
train
def record_ce_entries(self): # type: () -> bytes ''' Return a string representing the Rock Ridge entries in the Continuation Entry. Parameters: None. Returns: A string representing the Rock Ridge entry. ''' if not self._initialized: ...
python
{ "resource": "" }
q236755
RockRidge._add_ce_record
train
def _add_ce_record(self, curr_dr_len, thislen): # type: (int, int) -> int ''' An internal method to add a new length to a Continuation Entry. If the Continuation Entry does not yet exist, this method creates it. Parameters: curr_dr_len - The current Directory Record le...
python
{ "resource": "" }
q236756
RockRidge._add_name
train
def _add_name(self, rr_name, curr_dr_len): # type: (bytes, int) -> int ''' An internal method to add the appropriate name records to the ISO. Parameters: rr_name - The Rock Ridge name to add to the ISO. curr_dr_len - The current directory record length. Returns...
python
{ "resource": "" }
q236757
RockRidge.add_to_file_links
train
def add_to_file_links(self): # type: () -> None ''' Increment the number of POSIX file links on this entry by one. Parameters: None. Returns: Nothing. ''' if not self._initialized: raise pycdlibexception.PyCdlibInternalError('Rock Ri...
python
{ "resource": "" }
q236758
RockRidge.copy_file_links
train
def copy_file_links(self, src): # type: (RockRidge) -> None ''' Copy the number of file links from the source Rock Ridge entry into this Rock Ridge entry. Parameters: src - The source Rock Ridge entry to copy from. Returns: Nothing. ''' ...
python
{ "resource": "" }
q236759
RockRidge.get_file_mode
train
def get_file_mode(self): # type: () -> int ''' Get the POSIX file mode bits for this Rock Ridge entry. Parameters: None. Returns: The POSIX file mode bits for this Rock Ridge entry. ''' if not self._initialized: raise pycdlibexceptio...
python
{ "resource": "" }
q236760
RockRidge._is_symlink
train
def _is_symlink(self): # type: () -> bool ''' Internal method to determine whether this Rock Ridge entry is a symlink. ''' return len(self.dr_entries.sl_records) > 0 or len(self.ce_entries.sl_records) > 0
python
{ "resource": "" }
q236761
RockRidge.child_link_extent
train
def child_link_extent(self): # type: () -> int ''' Get the extent of the child of this entry if it has one. Parameters: None. Returns: The logical block number of the child if it exists. ''' if not self._initialized: raise pycdlibexc...
python
{ "resource": "" }
q236762
RockRidge.parent_link_extent
train
def parent_link_extent(self): # type: () -> int ''' Get the extent of the parent of this entry if it has one. Parameters: None. Returns: The logical block number of the parent if it exists. ''' if not self._initialized: raise pycdlib...
python
{ "resource": "" }
q236763
RockRidge.update_ce_block
train
def update_ce_block(self, block): # type: (RockRidgeContinuationBlock) -> None ''' Update the Continuation Entry block object used by this Rock Ridge Record. Parameters: block - The new block object. Returns: Nothing. ''' if not self._initialize...
python
{ "resource": "" }
q236764
RockRidgeContinuationBlock.track_entry
train
def track_entry(self, offset, length): # type: (int, int) -> None ''' Track an already allocated entry in this Rock Ridge Continuation Block. Parameters: offset - The offset at which to place the entry. length - The length of the entry to track. Returns: ...
python
{ "resource": "" }
q236765
RockRidgeContinuationBlock.add_entry
train
def add_entry(self, length): # type: (int) -> int ''' Add a new entry to this Rock Ridge Continuation Block. This method attempts to find a gap that fits the new length anywhere within this Continuation Block. If successful, it returns the offset at which it placed this...
python
{ "resource": "" }
q236766
RockRidgeContinuationBlock.remove_entry
train
def remove_entry(self, offset, length): # type: (int, int) -> None ''' Given an offset and length, find and remove the entry in this block that corresponds. Parameters: offset - The offset of the entry to look for. length - The length of the entry to look for. ...
python
{ "resource": "" }
q236767
crc_ccitt
train
def crc_ccitt(data): # type: (bytes) -> int ''' Calculate the CRC over a range of bytes using the CCITT polynomial. Parameters: data - The array of bytes to calculate the CRC over. Returns: The CCITT CRC of the data. ''' crc = 0 if not have_py_3: for x in data: ...
python
{ "resource": "" }
q236768
_ostaunicode
train
def _ostaunicode(src): # type: (str) -> bytes ''' Internal function to create an OSTA byte string from a source string. ''' if have_py_3: bytename = src else: bytename = src.decode('utf-8') # type: ignore try: enc = bytename.encode('latin-1') encbyte = b'\x0...
python
{ "resource": "" }
q236769
_ostaunicode_zero_pad
train
def _ostaunicode_zero_pad(src, fulllen): # type: (str, int) -> bytes ''' Internal function to create a zero-padded Identifier byte string from a source string. Parameters: src - The src string to start from. fulllen - The padded out length of the result. Returns: A full identifie...
python
{ "resource": "" }
q236770
_compute_csum
train
def _compute_csum(data): # type: (bytes) -> int ''' A method to compute a simple checksum over the given data. Parameters: data - The data to compute the checksum over. Returns: The checksum. ''' def identity(x): # type: (int) -> int ''' The identity functi...
python
{ "resource": "" }
q236771
symlink_to_bytes
train
def symlink_to_bytes(symlink_target): # type: (str) -> bytes ''' A function to generate UDF symlink data from a Unix-like path. Parameters: symlink_target - The Unix-like path that is the symlink. Returns: The UDF data corresponding to the symlink. ''' symlink_data = bytearray() ...
python
{ "resource": "" }
q236772
BEAVolumeStructure.set_extent_location
train
def set_extent_location(self, extent): # type: (int) -> None ''' A method to set the new location for this UDF BEA Volume Structure. Parameters: extent - The new extent location to set for this UDF BEA Volume Structure. Returns: Nothing. ''' if ...
python
{ "resource": "" }
q236773
NSRVolumeStructure.parse
train
def parse(self, data, extent): # type: (bytes, int) -> None ''' Parse the passed in data into a UDF NSR Volume Structure. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. Returns: Nothing. ''' ...
python
{ "resource": "" }
q236774
NSRVolumeStructure.record
train
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF NSR Volume Structure. Parameters: None. Returns: A string representing this UDF BEA Volume Strucutre. ''' if not self._initialized: ...
python
{ "resource": "" }
q236775
NSRVolumeStructure.new
train
def new(self, version): # type: () -> None ''' A method to create a new UDF NSR Volume Structure. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF NSR Volume Structure alr...
python
{ "resource": "" }
q236776
NSRVolumeStructure.extent_location
train
def extent_location(self): # type: () -> int ''' A method to get the extent location of this UDF NSR Volume Structure. Parameters: None. Returns: Integer extent location of this UDF NSR Volume Structure. ''' if not self._initialized: ...
python
{ "resource": "" }
q236777
UDFTag.parse
train
def parse(self, data, extent): # type: (bytes, int) -> None ''' Parse the passed in data into a UDF Descriptor tag. Parameters: data - The data to parse. extent - The extent to compare against for the tag location. Returns: Nothing. ''' ...
python
{ "resource": "" }
q236778
UDFTag.record
train
def record(self, crc_bytes): # type: (bytes) -> bytes ''' A method to generate the string representing this UDF Descriptor Tag. Parameters: crc_bytes - The string to compute the CRC over. Returns: A string representing this UDF Descriptor Tag. ''' ...
python
{ "resource": "" }
q236779
UDFTag.new
train
def new(self, tag_ident, tag_serial=0): # type: (int, int) -> None ''' A method to create a new UDF Descriptor Tag. Parameters: tag_ident - The tag identifier number for this tag. tag_serial - The tag serial number for this tag. Returns: Nothing ...
python
{ "resource": "" }
q236780
UDFAnchorVolumeStructure.parse
train
def parse(self, data, extent, desc_tag): # type: (bytes, int, UDFTag) -> None ''' Parse the passed in data into a UDF Anchor Volume Structure. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A UDFTa...
python
{ "resource": "" }
q236781
UDFAnchorVolumeStructure.record
train
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Anchor Volume Structure. Parameters: None. Returns: A string representing this UDF Anchor Volume Structure. ''' if not self._initialized: ...
python
{ "resource": "" }
q236782
UDFAnchorVolumeStructure.new
train
def new(self): # type: () -> None ''' A method to create a new UDF Anchor Volume Structure. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Anchor Volume Structure alread...
python
{ "resource": "" }
q236783
UDFAnchorVolumeStructure.set_extent_location
train
def set_extent_location(self, new_location, main_vd_extent, reserve_vd_extent): # type: (int, int, int) -> None ''' A method to set a new location for this Anchor Volume Structure. Parameters: new_location - The new extent that this Anchor Volume Structure should be located at....
python
{ "resource": "" }
q236784
UDFTimestamp.parse
train
def parse(self, data): # type: (bytes) -> None ''' Parse the passed in data into a UDF Timestamp. Parameters: data - The data to parse. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Time...
python
{ "resource": "" }
q236785
UDFTimestamp.record
train
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Timestamp. Parameters: None. Returns: A string representing this UDF Timestamp. ''' if not self._initialized: raise pycdlibexception.PyCd...
python
{ "resource": "" }
q236786
UDFTimestamp.new
train
def new(self): # type: () -> None ''' A method to create a new UDF Timestamp. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Timestamp already initialized') tm ...
python
{ "resource": "" }
q236787
UDFEntityID.parse
train
def parse(self, data): # type: (bytes) -> None ''' Parse the passed in data into a UDF Entity ID. Parameters: data - The data to parse. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Enti...
python
{ "resource": "" }
q236788
UDFEntityID.record
train
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Entity ID. Parameters: None. Returns: A string representing this UDF Entity ID. ''' if not self._initialized: raise pycdlibexception.PyCd...
python
{ "resource": "" }
q236789
UDFEntityID.new
train
def new(self, flags=0, identifier=b'', suffix=b''): # type: (int, bytes, bytes) -> None ''' A method to create a new UDF Entity ID. Parameters: flags - The flags to set for this Entity ID. identifier - The identifier to set for this Entity ID. suffix - The suf...
python
{ "resource": "" }
q236790
UDFPrimaryVolumeDescriptor.parse
train
def parse(self, data, extent, desc_tag): # type: (bytes, int, UDFTag) -> None ''' Parse the passed in data into a UDF Primary Volume Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A UDF...
python
{ "resource": "" }
q236791
UDFPrimaryVolumeDescriptor.record
train
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Primary Volume Descriptor. Parameters: None. Returns: A string representing this UDF Primary Volume Descriptor. ''' if not self._initialized:...
python
{ "resource": "" }
q236792
UDFPrimaryVolumeDescriptor.new
train
def new(self): # type: () -> None ''' A method to create a new UDF Primary Volume Descriptor. Parameters: None. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Primary Volume Descriptor al...
python
{ "resource": "" }
q236793
UDFImplementationUseVolumeDescriptorImplementationUse.parse
train
def parse(self, data): # type: (bytes) -> None ''' Parse the passed in data into a UDF Implementation Use Volume Descriptor Implementation Use field. Parameters: data - The data to parse. Returns: Nothing. ''' if self._initialized: ...
python
{ "resource": "" }
q236794
UDFImplementationUseVolumeDescriptorImplementationUse.record
train
def record(self): # type: () -> bytes ''' A method to generate the string representing this UDF Implementation Use Volume Descriptor Implementation Use field. Parameters: None. Returns: A string representing this UDF Implementation Use Volume Descriptor...
python
{ "resource": "" }
q236795
UDFImplementationUseVolumeDescriptorImplementationUse.new
train
def new(self): # type: () -> None ''' A method to create a new UDF Implementation Use Volume Descriptor Implementation Use field. Parameters: None: Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalErr...
python
{ "resource": "" }
q236796
UDFImplementationUseVolumeDescriptor.parse
train
def parse(self, data, extent, desc_tag): # type: (bytes, int, UDFTag) -> None ''' Parse the passed in data into a UDF Implementation Use Volume Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. ...
python
{ "resource": "" }
q236797
UDFImplementationUseVolumeDescriptor.new
train
def new(self): # type: () -> None ''' A method to create a new UDF Implementation Use Volume Descriptor. Parameters: None: Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInternalError('UDF Implementation Us...
python
{ "resource": "" }
q236798
UDFPartitionHeaderDescriptor.parse
train
def parse(self, data): # type: (bytes) -> None ''' Parse the passed in data into a UDF Partition Header Descriptor. Parameters: data - The data to parse. Returns: Nothing. ''' if self._initialized: raise pycdlibexception.PyCdlibInter...
python
{ "resource": "" }
q236799
UDFPartitionVolumeDescriptor.parse
train
def parse(self, data, extent, desc_tag): # type: (bytes, int, UDFTag) -> None ''' Parse the passed in data into a UDF Partition Volume Descriptor. Parameters: data - The data to parse. extent - The extent that this descriptor currently lives at. desc_tag - A U...
python
{ "resource": "" }