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_code_tokens listlengths 15 672k | func_documentation_string stringlengths 1 47.2k | func_documentation_tokens listlengths 1 3.92k | split_name stringclasses 1
value | 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... | [
"def",
"parse",
"(",
"self",
",",
"data",
",",
"extent",
",",
"desc_tag",
")",
":",
"# type: (bytes, int, UDFTag) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF Logical Volume Descriptor already ini... | Parse the passed in data into a UDF Logical Volume Descriptor.
Parameters:
data - The data to parse.
extent - The extent that this descriptor currently lives at.
desc_tag - A UDFTag object that represents the Descriptor Tag.
Returns:
Nothing. | [
"Parse",
"the",
"passed",
"in",
"data",
"into",
"a",
"UDF",
"Logical",
"Volume",
"Descriptor",
"."
] | train | 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:
... | [
"def",
"record",
"(",
"self",
")",
":",
"# type: () -> bytes",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF Logical Volume Descriptor not initialized'",
")",
"rec",
"=",
"struct",
".",
"pack",
"(... | A method to generate the string representing this UDF Logical Volume Descriptor.
Parameters:
None.
Returns:
A string representing this UDF Logical Volume Descriptor. | [
"A",
"method",
"to",
"generate",
"the",
"string",
"representing",
"this",
"UDF",
"Logical",
"Volume",
"Descriptor",
"."
] | train | 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... | [
"def",
"new",
"(",
"self",
")",
":",
"# type: () -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF Logical Volume Descriptor already initialized'",
")",
"self",
".",
"desc_tag",
"=",
"UDFTag",
"(",
... | A method to create a new UDF Logical Volume Descriptor.
Parameters:
None.
Returns:
Nothing. | [
"A",
"method",
"to",
"create",
"a",
"new",
"UDF",
"Logical",
"Volume",
"Descriptor",
"."
] | train | 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... | [
"def",
"set_integrity_location",
"(",
"self",
",",
"integrity_extent",
")",
":",
"# type: (int) -> None",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF Logical Volume Descriptor not initialized'",
")",
... | A method to set the location of the UDF Integrity sequence that this descriptor references.
Parameters:
integrity_extent - The new extent that the UDF Integrity sequence should start at.
Returns:
Nothing. | [
"A",
"method",
"to",
"set",
"the",
"location",
"of",
"the",
"UDF",
"Integrity",
"sequence",
"that",
"this",
"descriptor",
"references",
"."
] | train | 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 ... | [
"def",
"parse",
"(",
"self",
",",
"data",
",",
"extent",
",",
"desc_tag",
")",
":",
"# type: (bytes, int, UDFTag) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF Unallocated Space Descriptor already ... | Parse the passed in data into a UDF Unallocated Space Descriptor.
Parameters:
data - The data to parse.
extent - The extent that this descriptor currently lives at.
desc_tag - A UDFTag object that represents the Descriptor Tag.
Returns:
Nothing. | [
"Parse",
"the",
"passed",
"in",
"data",
"into",
"a",
"UDF",
"Unallocated",
"Space",
"Descriptor",
"."
] | train | 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.
... | [
"def",
"parse",
"(",
"self",
",",
"extent",
",",
"desc_tag",
")",
":",
"# type: (int, UDFTag) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF Terminating Descriptor already initialized'",
")",
"self"... | Parse the passed in data into a UDF Terminating Descriptor.
Parameters:
extent - The extent that this descriptor currently lives at.
desc_tag - A UDFTag object that represents the Descriptor Tag.
Returns:
Nothing. | [
"Parse",
"the",
"passed",
"in",
"data",
"into",
"a",
"UDF",
"Terminating",
"Descriptor",
"."
] | train | 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:
... | [
"def",
"record",
"(",
"self",
")",
":",
"# type: () -> bytes",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF Terminating Descriptor not initialized'",
")",
"rec",
"=",
"struct",
".",
"pack",
"(",
... | A method to generate the string representing this UDF Terminating
Descriptor.
Parameters:
None.
Returns:
A string representing this UDF Terminating Descriptor. | [
"A",
"method",
"to",
"generate",
"the",
"string",
"representing",
"this",
"UDF",
"Terminating",
"Descriptor",
"."
] | train | 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 ... | [
"def",
"new",
"(",
"self",
")",
":",
"# type: () -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF Terminating Descriptor already initialized'",
")",
"self",
".",
"desc_tag",
"=",
"UDFTag",
"(",
")... | A method to create a new UDF Terminating Descriptor.
Parameters:
None.
Returns:
Nothing. | [
"A",
"method",
"to",
"create",
"a",
"new",
"UDF",
"Terminating",
"Descriptor",
"."
] | train | 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 ... | [
"def",
"set_extent_location",
"(",
"self",
",",
"new_location",
",",
"tag_location",
"=",
"None",
")",
":",
"# type: (int, int) -> None",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF Terminating De... | A method to set the location of this UDF Terminating Descriptor.
Parameters:
new_location - The new extent this UDF Terminating Descriptor should be located at.
tag_location - The tag location to set for this UDF Terminator Descriptor.
Returns:
Nothing. | [
"A",
"method",
"to",
"set",
"the",
"location",
"of",
"this",
"UDF",
"Terminating",
"Descriptor",
"."
] | train | 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... | [
"def",
"parse",
"(",
"self",
",",
"data",
")",
":",
"# type: (bytes) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF Logical Volume Header Descriptor already initialized'",
")",
"(",
"self",
".",
"... | Parse the passed in data into a UDF Logical Volume Header Descriptor.
Parameters:
data - The data to parse.
Returns:
Nothing. | [
"Parse",
"the",
"passed",
"in",
"data",
"into",
"a",
"UDF",
"Logical",
"Volume",
"Header",
"Descriptor",
"."
] | train | 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... | [
"def",
"new",
"(",
"self",
")",
":",
"# type: () -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF Logical Volume Header Descriptor already initialized'",
")",
"self",
".",
"unique_id",
"=",
"261",
"... | A method to create a new UDF Logical Volume Header Descriptor.
Parameters:
None.
Returns:
Nothing. | [
"A",
"method",
"to",
"create",
"a",
"new",
"UDF",
"Logical",
"Volume",
"Header",
"Descriptor",
"."
] | train | 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... | [
"def",
"parse",
"(",
"self",
",",
"data",
")",
":",
"# type: (bytes) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF Logical Volume Implementation Use already initialized'",
")",
"(",
"impl_id",
",",... | Parse the passed in data into a UDF Logical Volume Implementation Use.
Parameters:
data - The data to parse.
Returns:
Nothing. | [
"Parse",
"the",
"passed",
"in",
"data",
"into",
"a",
"UDF",
"Logical",
"Volume",
"Implementation",
"Use",
"."
] | train | 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... | [
"def",
"record",
"(",
"self",
")",
":",
"# type: () -> bytes",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF Logical Volume Implementation Use not initialized'",
")",
"return",
"struct",
".",
"pack",
... | A method to generate the string representing this UDF Logical Volume
Implementation Use.
Parameters:
None.
Returns:
A string representing this UDF Logical Volume Implementation Use. | [
"A",
"method",
"to",
"generate",
"the",
"string",
"representing",
"this",
"UDF",
"Logical",
"Volume",
"Implementation",
"Use",
"."
] | train | 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... | [
"def",
"new",
"(",
"self",
")",
":",
"# type: () -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF Logical Volume Implementation Use already initialized'",
")",
"self",
".",
"impl_id",
"=",
"UDFEntityI... | A method to create a new UDF Logical Volume Implementation Use.
Parameters:
None.
Returns:
Nothing. | [
"A",
"method",
"to",
"create",
"a",
"new",
"UDF",
"Logical",
"Volume",
"Implementation",
"Use",
"."
] | train | 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... | [
"def",
"parse",
"(",
"self",
",",
"data",
",",
"extent",
",",
"desc_tag",
")",
":",
"# type: (bytes, int, UDFTag) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF Logical Volume Integrity Descriptor a... | Parse the passed in data into a UDF Logical Volume Integrity Descriptor.
Parameters:
data - The data to parse.
extent - The extent that this descriptor currently lives at.
desc_tag - A UDFTag object that represents the Descriptor Tag.
Returns:
Nothing. | [
"Parse",
"the",
"passed",
"in",
"data",
"into",
"a",
"UDF",
"Logical",
"Volume",
"Integrity",
"Descriptor",
"."
] | train | 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... | [
"def",
"record",
"(",
"self",
")",
":",
"# type: () -> bytes",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF Logical Volume Integrity Descriptor not initialized'",
")",
"rec",
"=",
"struct",
".",
"p... | A method to generate the string representing this UDF Logical Volume
Integrity Descriptor.
Parameters:
None.
Returns:
A string representing this UDF Logical Volume Integrity Descriptor. | [
"A",
"method",
"to",
"generate",
"the",
"string",
"representing",
"this",
"UDF",
"Logical",
"Volume",
"Integrity",
"Descriptor",
"."
] | train | 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... | [
"def",
"new",
"(",
"self",
")",
":",
"# type: () -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF Logical Volume Integrity Descriptor already initialized'",
")",
"self",
".",
"desc_tag",
"=",
"UDFTag"... | A method to create a new UDF Logical Volume Integrity Descriptor.
Parameters:
None.
Returns:
Nothing. | [
"A",
"method",
"to",
"create",
"a",
"new",
"UDF",
"Logical",
"Volume",
"Integrity",
"Descriptor",
"."
] | train | 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... | [
"def",
"parse",
"(",
"self",
",",
"data",
",",
"extent",
",",
"desc_tag",
")",
":",
"# type: (bytes, int, UDFTag) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF File Set Descriptor already initializ... | Parse the passed in data into a UDF File Set Descriptor.
Parameters:
data - The data to parse.
extent - The extent that this descriptor currently lives at.
desc_tag - A UDFTag object that represents the Descriptor Tag.
Returns:
Nothing. | [
"Parse",
"the",
"passed",
"in",
"data",
"into",
"a",
"UDF",
"File",
"Set",
"Descriptor",
"."
] | train | 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:
... | [
"def",
"record",
"(",
"self",
")",
":",
"# type: () -> bytes",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF File Set Descriptor not initialized'",
")",
"rec",
"=",
"struct",
".",
"pack",
"(",
"... | A method to generate the string representing this UDF File Set
Descriptor.
Parameters:
None.
Returns:
A string representing this UDF File Set Descriptor. | [
"A",
"method",
"to",
"generate",
"the",
"string",
"representing",
"this",
"UDF",
"File",
"Set",
"Descriptor",
"."
] | train | 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... | [
"def",
"new",
"(",
"self",
")",
":",
"# type: () -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF File Set Descriptor already initialized'",
")",
"self",
".",
"desc_tag",
"=",
"UDFTag",
"(",
")",
... | A method to create a new UDF File Set Descriptor.
Parameters:
None.
Returns:
Nothing. | [
"A",
"method",
"to",
"create",
"a",
"new",
"UDF",
"File",
"Set",
"Descriptor",
"."
] | train | 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.
'''
... | [
"def",
"set_extent_location",
"(",
"self",
",",
"new_location",
")",
":",
"# type: (int) -> None",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF File Set Descriptor not initialized'",
")",
"self",
"."... | 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",
"."
] | train | 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... | [
"def",
"parse",
"(",
"self",
",",
"data",
")",
":",
"# type: (bytes) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF ICB Tag already initialized'",
")",
"(",
"self",
".",
"prior_num_direct_entries"... | Parse the passed in data into a UDF ICB Tag.
Parameters:
data - The data to parse.
Returns:
Nothing. | [
"Parse",
"the",
"passed",
"in",
"data",
"into",
"a",
"UDF",
"ICB",
"Tag",
"."
] | train | 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... | [
"def",
"record",
"(",
"self",
")",
":",
"# type: () -> bytes",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF ICB Tag not initialized'",
")",
"return",
"struct",
".",
"pack",
"(",
"self",
".",
... | A method to generate the string representing this UDF ICB Tag.
Parameters:
None.
Returns:
A string representing this UDF ICB Tag. | [
"A",
"method",
"to",
"generate",
"the",
"string",
"representing",
"this",
"UDF",
"ICB",
"Tag",
"."
] | train | 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... | [
"def",
"new",
"(",
"self",
",",
"file_type",
")",
":",
"# type: (str) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF ICB Tag already initialized'",
")",
"self",
".",
"prior_num_direct_entries",
"=... | A method to create a new UDF ICB Tag.
Parameters:
file_type - What file type this represents, one of 'dir', 'file', or 'symlink'.
Returns:
Nothing. | [
"A",
"method",
"to",
"create",
"a",
"new",
"UDF",
"ICB",
"Tag",
"."
] | train | 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.
... | [
"def",
"parse",
"(",
"self",
",",
"data",
",",
"extent",
",",
"parent",
",",
"desc_tag",
")",
":",
"# type: (bytes, int, Optional[UDFFileEntry], UDFTag) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
... | Parse the passed in data into a UDF File Entry.
Parameters:
data - The data to parse.
extent - The extent that this descriptor currently lives at.
parent - The parent File Entry for this file (may be None).
desc_tag - A UDFTag object that represents the Descriptor Tag.
... | [
"Parse",
"the",
"passed",
"in",
"data",
"into",
"a",
"UDF",
"File",
"Entry",
"."
] | train | 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... | [
"def",
"record",
"(",
"self",
")",
":",
"# type: () -> bytes",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF File Entry not initialized'",
")",
"rec",
"=",
"struct",
".",
"pack",
"(",
"self",
... | A method to generate the string representing this UDF File Entry.
Parameters:
None.
Returns:
A string representing this UDF File Entry. | [
"A",
"method",
"to",
"generate",
"the",
"string",
"representing",
"this",
"UDF",
"File",
"Entry",
"."
] | train | 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... | [
"def",
"new",
"(",
"self",
",",
"length",
",",
"file_type",
",",
"parent",
",",
"log_block_size",
")",
":",
"# type: (int, str, Optional[UDFFileEntry], int) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"("... | A method to create a new UDF File Entry.
Parameters:
length - The (starting) length of this UDF File Entry; this is ignored
if this is a symlink.
file_type - The type that this UDF File entry represents; one of 'dir', 'file', or 'symlink'.
parent - The parent UDF Fi... | [
"A",
"method",
"to",
"create",
"a",
"new",
"UDF",
"File",
"Entry",
"."
] | train | 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.
... | [
"def",
"add_file_ident_desc",
"(",
"self",
",",
"new_fi_desc",
",",
"logical_block_size",
")",
":",
"# type: (UDFFileIdentifierDescriptor, int) -> int",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF Fil... | A method to add a new UDF File Identifier Descriptor to this UDF File
Entry.
Parameters:
new_fi_desc - The new UDF File Identifier Descriptor to add.
logical_block_size - The logical block size to use.
Returns:
The number of extents added due to adding this File Ident... | [
"A",
"method",
"to",
"add",
"a",
"new",
"UDF",
"File",
"Identifier",
"Descriptor",
"to",
"this",
"UDF",
"File",
"Entry",
"."
] | train | 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... | [
"def",
"remove_file_ident_desc_by_name",
"(",
"self",
",",
"name",
",",
"logical_block_size",
")",
":",
"# type: (bytes, int) -> int",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF File Entry not initia... | A method to remove a UDF File Identifier Descriptor from this UDF File
Entry.
Parameters:
name - The name of the UDF File Identifier Descriptor to remove.
logical_block_size - The logical block size to use.
Returns:
The number of extents removed due to removing this F... | [
"A",
"method",
"to",
"remove",
"a",
"UDF",
"File",
"Identifier",
"Descriptor",
"from",
"this",
"UDF",
"File",
"Entry",
"."
] | train | 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... | [
"def",
"set_data_location",
"(",
"self",
",",
"current_extent",
",",
"start_extent",
")",
":",
"# pylint: disable=unused-argument",
"# type: (int, int) -> None",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
... | A method to set the location of the data that this UDF File Entry
points to.
Parameters:
current_extent - Unused
start_extent - The starting extent for this data location.
Returns:
Nothing. | [
"A",
"method",
"to",
"set",
"the",
"location",
"of",
"the",
"data",
"that",
"this",
"UDF",
"File",
"Entry",
"points",
"to",
"."
] | train | 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:
... | [
"def",
"set_data_length",
"(",
"self",
",",
"length",
")",
":",
"# type: (int) -> None",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'Directory Record not yet initialized'",
")",
"len_diff",
"=",
"leng... | A method to set the length of the data that this UDF File Entry
points to.
Parameters:
length - The new length for the data.
Returns:
Nothing. | [
"A",
"method",
"to",
"set",
"the",
"length",
"of",
"the",
"data",
"that",
"this",
"UDF",
"File",
"Entry",
"points",
"to",
"."
] | train | 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... | [
"def",
"file_identifier",
"(",
"self",
")",
":",
"# type: () -> bytes",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF File Entry not initialized'",
")",
"if",
"self",
".",
"file_ident",
"is",
"Non... | A method to get the name of this UDF File Entry as a byte string.
Parameters:
None.
Returns:
The UDF File Entry as a byte string. | [
"A",
"method",
"to",
"get",
"the",
"name",
"of",
"this",
"UDF",
"File",
"Entry",
"as",
"a",
"byte",
"string",
"."
] | train | 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... | [
"def",
"find_file_ident_desc_by_name",
"(",
"self",
",",
"currpath",
")",
":",
"# type: (bytes) -> UDFFileIdentifierDescriptor",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF File Entry not initialized'",
... | A method to find a UDF File Identifier descriptor by its name.
Parameters:
currpath - The UTF-8 encoded name to look up.
Returns:
The UDF File Identifier descriptor corresponding to the passed in name. | [
"A",
"method",
"to",
"find",
"a",
"UDF",
"File",
"Identifier",
"descriptor",
"by",
"its",
"name",
"."
] | train | 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... | [
"def",
"track_file_ident_desc",
"(",
"self",
",",
"file_ident",
")",
":",
"# type: (UDFFileIdentifierDescriptor) -> None",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF File Entry not initialized'",
")",
... | A method to start tracking a UDF File Identifier descriptor in this
UDF File Entry. Both 'tracking' and 'addition' add the identifier to
the list of file identifiers, but tracking doees not expand or
otherwise modify the UDF File Entry.
Parameters:
file_ident - The UDF File Id... | [
"A",
"method",
"to",
"start",
"tracking",
"a",
"UDF",
"File",
"Identifier",
"descriptor",
"in",
"this",
"UDF",
"File",
"Entry",
".",
"Both",
"tracking",
"and",
"addition",
"add",
"the",
"identifier",
"to",
"the",
"list",
"of",
"file",
"identifiers",
"but",
... | train | 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.
... | [
"def",
"finish_directory_parse",
"(",
"self",
")",
":",
"# type: () -> None",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF File Entry not initialized'",
")",
"if",
"self",
".",
"icb_tag",
".",
"f... | 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",
"."
] | train | 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... | [
"def",
"length",
"(",
"cls",
",",
"namelen",
")",
":",
"# type: (Type[UDFFileIdentifierDescriptor], int) -> int",
"if",
"namelen",
">",
"0",
":",
"namelen",
"+=",
"1",
"to_add",
"=",
"struct",
".",
"calcsize",
"(",
"cls",
".",
"FMT",
")",
"+",
"namelen",
"re... | A class method to calculate the size this UDFFileIdentifierDescriptor
would take up.
Parameters:
cls - The class to use (always UDFFileIdentifierDescriptor).
namelen - The length of the name.
Returns:
The length that the UDFFileIdentifierDescriptor would take up. | [
"A",
"class",
"method",
"to",
"calculate",
"the",
"size",
"this",
"UDFFileIdentifierDescriptor",
"would",
"take",
"up",
"."
] | train | 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.
... | [
"def",
"parse",
"(",
"self",
",",
"data",
",",
"extent",
",",
"desc_tag",
",",
"parent",
")",
":",
"# type: (bytes, int, UDFTag, UDFFileEntry) -> int",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF File ... | Parse the passed in data into a UDF File Identifier Descriptor.
Parameters:
data - The data to parse.
extent - The extent that this descriptor currently lives at.
desc_tag - A UDFTag object that represents the Descriptor Tag.
parent - The UDF File Entry representing the pare... | [
"Parse",
"the",
"passed",
"in",
"data",
"into",
"a",
"UDF",
"File",
"Identifier",
"Descriptor",
"."
] | train | 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:
... | [
"def",
"record",
"(",
"self",
")",
":",
"# type: () -> bytes",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF File Identifier Descriptor not initialized'",
")",
"if",
"self",
".",
"len_fi",
">",
"0... | A method to generate the string representing this UDF File Identifier Descriptor.
Parameters:
None.
Returns:
A string representing this UDF File Identifier Descriptor. | [
"A",
"method",
"to",
"generate",
"the",
"string",
"representing",
"this",
"UDF",
"File",
"Identifier",
"Descriptor",
"."
] | train | 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... | [
"def",
"new",
"(",
"self",
",",
"isdir",
",",
"isparent",
",",
"name",
",",
"parent",
")",
":",
"# type: (bool, bool, bytes, Optional[UDFFileEntry]) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UD... | A method to create a new UDF File Identifier.
Parameters:
isdir - Whether this File Identifier is a directory.
isparent - Whether this File Identifier is a parent (..).
name - The name for this File Identifier.
parent - The UDF File Entry representing the parent.
Ret... | [
"A",
"method",
"to",
"create",
"a",
"new",
"UDF",
"File",
"Identifier",
"."
] | train | 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... | [
"def",
"set_icb",
"(",
"self",
",",
"new_location",
",",
"tag_location",
")",
":",
"# type: (int, int) -> None",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'UDF File Identifier not initialized'",
")",
... | A method to set the location of the data that this UDF File Identifier
Descriptor points at. The data can either be for a directory or for a
file.
Parameters:
new_location - The new extent this UDF File Identifier Descriptor data lives at.
tag_location - The new relative exte... | [
"A",
"method",
"to",
"set",
"the",
"location",
"of",
"the",
"data",
"that",
"this",
"UDF",
"File",
"Identifier",
"Descriptor",
"points",
"at",
".",
"The",
"data",
"can",
"either",
"be",
"for",
"a",
"directory",
"or",
"for",
"a",
"file",
"."
] | train | 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... | [
"def",
"pvd_factory",
"(",
"sys_ident",
",",
"vol_ident",
",",
"set_size",
",",
"seqnum",
",",
"log_block_size",
",",
"vol_set_ident",
",",
"pub_ident_str",
",",
"preparer_ident_str",
",",
"app_ident_str",
",",
"copyright_file",
",",
"abstract_file",
",",
"bibli_fil... | An internal function to create a Primary Volume Descriptor.
Parameters:
sys_ident - The system identification string to use on the new ISO.
vol_ident - The volume identification string to use on the new ISO.
set_size - The size of the set of ISOs this ISO is a part of.
seqnum - The sequence num... | [
"An",
"internal",
"function",
"to",
"create",
"a",
"Primary",
"Volume",
"Descriptor",
"."
] | train | 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):
#... | [
"def",
"enhanced_vd_factory",
"(",
"sys_ident",
",",
"vol_ident",
",",
"set_size",
",",
"seqnum",
",",
"log_block_size",
",",
"vol_set_ident",
",",
"pub_ident_str",
",",
"preparer_ident_str",
",",
"app_ident_str",
",",
"copyright_file",
",",
"abstract_file",
",",
"b... | An internal function to create an Enhanced Volume Descriptor for ISO 1999.
Parameters:
sys_ident - The system identification string to use on the new ISO.
vol_ident - The volume identification string to use on the new ISO.
set_size - The size of the set of ISOs this ISO is a part of.
seqnum - T... | [
"An",
"internal",
"function",
"to",
"create",
"an",
"Enhanced",
"Volume",
"Descriptor",
"for",
"ISO",
"1999",
"."
] | train | 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... | [
"def",
"joliet_vd_factory",
"(",
"joliet",
",",
"sys_ident",
",",
"vol_ident",
",",
"set_size",
",",
"seqnum",
",",
"log_block_size",
",",
"vol_set_ident",
",",
"pub_ident_str",
",",
"preparer_ident_str",
",",
"app_ident_str",
",",
"copyright_file",
",",
"abstract_f... | An internal function to create an Joliet Volume Descriptor.
Parameters:
joliet - The joliet version to use, one of 1, 2, or 3.
sys_ident - The system identification string to use on the new ISO.
vol_ident - The volume identification string to use on the new ISO.
set_size - The size of the set o... | [
"An",
"internal",
"function",
"to",
"create",
"an",
"Joliet",
"Volume",
"Descriptor",
"."
] | train | 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.... | [
"def",
"parse",
"(",
"self",
",",
"vd",
",",
"extent_loc",
")",
":",
"# type: (bytes, int) -> None",
"################ PVD VERSION ######################",
"(",
"descriptor_type",
",",
"identifier",
",",
"self",
".",
"version",
",",
"self",
".",
"flags",
",",
"self"... | 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",
"."
] | train | 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... | [
"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... | 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 ... | [
"Create",
"a",
"new",
"Volume",
"Descriptor",
"."
] | train | 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... | [
"def",
"copy",
"(",
"self",
",",
"orig",
")",
":",
"# type: (PrimaryOrSupplementaryVD) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'This Volume Descriptor is already initialized'",
")",
"self",
".",
"... | A method to populate and initialize this VD object from the contents
of an old VD.
Parameters:
orig_pvd - The original VD to copy data from.
Returns:
Nothing. | [
"A",
"method",
"to",
"populate",
"and",
"initialize",
"this",
"VD",
"object",
"from",
"the",
"contents",
"of",
"an",
"old",
"VD",
"."
] | train | 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... | [
"def",
"record",
"(",
"self",
")",
":",
"# type: () -> bytes",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'This Volume Descriptor is not yet initialized'",
")",
"vol_mod_date",
"=",
"dates",
".",
"Vol... | A method to generate the string representing this Volume Descriptor.
Parameters:
None.
Returns:
A string representing this Volume Descriptor. | [
"A",
"method",
"to",
"generate",
"the",
"string",
"representing",
"this",
"Volume",
"Descriptor",
"."
] | train | 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 ... | [
"def",
"track_rr_ce_entry",
"(",
"self",
",",
"extent",
",",
"offset",
",",
"length",
")",
":",
"# type: (int, int, int) -> rockridge.RockRidgeContinuationBlock",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(... | Start tracking a new Rock Ridge Continuation Entry entry in this Volume
Descriptor, at the extent, offset, and length provided. Since Rock
Ridge Continuation Blocks are shared across multiple Rock Ridge
Directory Records, the most logical place to track them is in the PVD.
This method i... | [
"Start",
"tracking",
"a",
"new",
"Rock",
"Ridge",
"Continuation",
"Entry",
"entry",
"in",
"this",
"Volume",
"Descriptor",
"at",
"the",
"extent",
"offset",
"and",
"length",
"provided",
".",
"Since",
"Rock",
"Ridge",
"Continuation",
"Blocks",
"are",
"shared",
"a... | train | 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... | [
"def",
"add_rr_ce_entry",
"(",
"self",
",",
"length",
")",
":",
"# type: (int) -> Tuple[bool, rockridge.RockRidgeContinuationBlock, int]",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'This Primary Volume Descr... | 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... | [
"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",
"C... | train | 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... | [
"def",
"clear_rr_ce_entries",
"(",
"self",
")",
":",
"# type: () -> None",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'This Primary Volume Descriptor is not yet initialized'",
")",
"for",
"block",
"in",
... | A method to clear out all of the extent locations of all Rock Ridge
Continuation Entries that the PVD is tracking. This can be used to
reset all data before assigning new data.
Parameters:
None.
Returns:
Nothing. | [
"A",
"method",
"to",
"clear",
"out",
"all",
"of",
"the",
"extent",
"locations",
"of",
"all",
"Rock",
"Ridge",
"Continuation",
"Entries",
"that",
"the",
"PVD",
"is",
"tracking",
".",
"This",
"can",
"be",
"used",
"to",
"reset",
"all",
"data",
"before",
"as... | train | 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.
'''
... | [
"def",
"add_to_space_size",
"(",
"self",
",",
"addition_bytes",
")",
":",
"# type: (int) -> None",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'This Volume Descriptor is not yet initialized'",
")",
"# The ... | 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",
"."
] | train | 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... | [
"def",
"remove_from_space_size",
"(",
"self",
",",
"removal_bytes",
")",
":",
"# type: (int) -> None",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'This Volume Descriptor is not yet initialized'",
")",
"# ... | Remove bytes from the volume descriptor.
Parameters:
removal_bytes - The number of bytes to remove.
Returns:
Nothing. | [
"Remove",
"bytes",
"from",
"the",
"volume",
"descriptor",
"."
] | train | 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 ... | [
"def",
"add_to_ptr_size",
"(",
"self",
",",
"ptr_size",
")",
":",
"# type: (int) -> bool",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'This Volume Descriptor is not yet initialized'",
")",
"# First add to... | Add the space for a path table record to the volume descriptor.
Parameters:
ptr_size - The length of the Path Table Record being added to this Volume Descriptor.
Returns:
True if extents need to be added to the Volume Descriptor, False otherwise. | [
"Add",
"the",
"space",
"for",
"a",
"path",
"table",
"record",
"to",
"the",
"volume",
"descriptor",
"."
] | train | 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... | [
"def",
"remove_from_ptr_size",
"(",
"self",
",",
"ptr_size",
")",
":",
"# type: (int) -> bool",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'This Volume Descriptor is not yet initialized'",
")",
"# Next re... | Remove the space for a path table record from the volume descriptor.
Parameters:
ptr_size - The length of the Path Table Record being removed from this Volume Descriptor.
Returns:
True if extents need to be removed from the Volume Descriptor, False otherwise. | [
"Remove",
"the",
"space",
"for",
"a",
"path",
"table",
"record",
"from",
"the",
"volume",
"descriptor",
"."
] | train | 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... | [
"def",
"copy_sizes",
"(",
"self",
",",
"othervd",
")",
":",
"# type: (PrimaryOrSupplementaryVD) -> None",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'This Volume Descriptor is not yet initialized'",
")",
... | 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",
"."
] | train | 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... | [
"def",
"parse",
"(",
"self",
",",
"ident_str",
")",
":",
"# type: (bytes) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'This File or Text identifier is already initialized'",
")",
"self",
".",
"text",
... | 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. | [
"Parse",
"a",
"file",
"or",
"text",
"identifier",
"out",
"of",
"a",
"string",
"."
] | train | 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... | [
"def",
"new",
"(",
"self",
",",
"text",
")",
":",
"# type: (bytes) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'This File or Text identifier is already initialized'",
")",
"if",
"len",
"(",
"text",
... | Create a new file or text identifier.
Parameters:
text - The text to store into the identifier.
Returns:
Nothing. | [
"Create",
"a",
"new",
"file",
"or",
"text",
"identifier",
"."
] | train | 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.
... | [
"def",
"parse",
"(",
"self",
",",
"vd",
",",
"extent_loc",
")",
":",
"# type: (bytes, int) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'Volume Descriptor Set Terminator already initialized'",
")",
"("... | 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",
"."
] | train | 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... | [
"def",
"parse",
"(",
"self",
",",
"vd",
",",
"extent_loc",
")",
":",
"# type: (bytes, int) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'Boot Record already initialized'",
")",
"(",
"descriptor_type"... | 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. | [
"A",
"method",
"to",
"parse",
"a",
"Boot",
"Record",
"out",
"of",
"a",
"string",
"."
] | train | 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... | [
"def",
"new",
"(",
"self",
",",
"boot_system_id",
")",
":",
"# type: (bytes) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"Exception",
"(",
"'Boot Record already initialized'",
")",
"self",
".",
"boot_system_identifier",
"=",
"boot_system_id",
".",
"lj... | A method to create a new Boot Record.
Parameters:
boot_system_id - The system identifier to associate with this Boot
Record.
Returns:
Nothing. | [
"A",
"method",
"to",
"create",
"a",
"new",
"Boot",
"Record",
"."
] | train | 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... | [
"def",
"record",
"(",
"self",
")",
":",
"# type: () -> bytes",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'Boot Record not yet initialized'",
")",
"return",
"struct",
".",
"pack",
"(",
"self",
"."... | A method to generate a string representing this Boot Record.
Parameters:
None.
Returns:
A string representing this Boot Record. | [
"A",
"method",
"to",
"generate",
"a",
"string",
"representing",
"this",
"Boot",
"Record",
"."
] | train | 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... | [
"def",
"update_boot_system_use",
"(",
"self",
",",
"boot_sys_use",
")",
":",
"# type: (bytes) -> None",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'Boot Record not yet initialized'",
")",
"self",
".",
... | 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. | [
"A",
"method",
"to",
"update",
"the",
"boot",
"system",
"use",
"field",
"of",
"this",
"Boot",
"Record",
"."
] | train | 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.
... | [
"def",
"parse",
"(",
"self",
",",
"data",
",",
"extent",
")",
":",
"# type: (bytes, int) -> bool",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'This Version Volume Descriptor is already initialized'",
")",
"if"... | 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 ... | [
"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",
... | train | 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... | [
"def",
"new",
"(",
"self",
",",
"log_block_size",
")",
":",
"# type: (int) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'This Version Volume Descriptor is already initialized'",
")",
"self",
".",
"_dat... | Create a new Version Volume Descriptor.
Parameters:
log_block_size - The size of one extent.
Returns:
Nothing. | [
"Create",
"a",
"new",
"Version",
"Volume",
"Descriptor",
"."
] | train | 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. ... | [
"def",
"hdmbrcheck",
"(",
"disk_mbr",
",",
"sector_count",
",",
"bootable",
")",
":",
"# type: (bytes, int, bool) -> int",
"# The MBR that we want to see to do hd emulation boot for El Torito is a standard",
"# x86 MBR, documented here:",
"# https://en.wikipedia.org/wiki/Master_boot_record... | 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.
... | [
"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",
")",
"tha... | train | 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... | [
"def",
"parse",
"(",
"self",
",",
"vd",
",",
"datastr",
",",
"ino",
")",
":",
"# type: (headervd.PrimaryOrSupplementaryVD, bytes, inode.Inode) -> bool",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'This Eltorit... | 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... | [
"A",
"method",
"to",
"parse",
"a",
"boot",
"info",
"table",
"out",
"of",
"a",
"string",
"."
] | train | 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... | [
"def",
"new",
"(",
"self",
",",
"vd",
",",
"ino",
",",
"orig_len",
",",
"csum",
")",
":",
"# type: (headervd.PrimaryOrSupplementaryVD, inode.Inode, int, int) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(... | 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... | [
"A",
"method",
"to",
"create",
"a",
"new",
"boot",
"info",
"table",
"."
] | train | 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... | [
"def",
"record",
"(",
"self",
")",
":",
"# type: () -> bytes",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'This Eltorito Boot Info Table not yet initialized'",
")",
"return",
"struct",
".",
"pack",
"(... | A method to generate a string representing this boot info table.
Parameters:
None.
Returns:
A string representing this boot info table. | [
"A",
"method",
"to",
"generate",
"a",
"string",
"representing",
"this",
"boot",
"info",
"table",
"."
] | train | 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... | [
"def",
"_checksum",
"(",
"data",
")",
":",
"# type: (bytes) -> int",
"def",
"identity",
"(",
"x",
")",
":",
"# type: (int) -> int",
"'''\n The identity function so we can use a function for python2/3\n compatibility.\n '''",
"return",
"x",
"if",
"... | 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 ... | [
"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",
"disc... | train | 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:
... | [
"def",
"parse",
"(",
"self",
",",
"valstr",
")",
":",
"# type: (bytes) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'El Torito Validation Entry already initialized'",
")",
"(",
"header_id",
",",
"sel... | 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. | [
"A",
"method",
"to",
"parse",
"an",
"El",
"Torito",
"Validation",
"Entry",
"out",
"of",
"a",
"string",
"."
] | train | 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 ... | [
"def",
"new",
"(",
"self",
",",
"platform_id",
")",
":",
"# type: (int) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'El Torito Validation Entry already initialized'",
")",
"self",
".",
"platform_id",
... | A method to create a new El Torito Validation Entry.
Parameters:
platform_id - The platform ID to set for this validation entry.
Returns:
Nothing. | [
"A",
"method",
"to",
"create",
"a",
"new",
"El",
"Torito",
"Validation",
"Entry",
"."
] | train | 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.... | [
"def",
"_record",
"(",
"self",
")",
":",
"# type: () -> bytes",
"return",
"struct",
".",
"pack",
"(",
"self",
".",
"FMT",
",",
"1",
",",
"self",
".",
"platform_id",
",",
"0",
",",
"self",
".",
"id_string",
",",
"self",
".",
"checksum",
",",
"0x55",
"... | An internal method to generate a string representing this El Torito
Validation Entry.
Parameters:
None.
Returns:
String representing this El Torito Validation Entry. | [
"An",
"internal",
"method",
"to",
"generate",
"a",
"string",
"representing",
"this",
"El",
"Torito",
"Validation",
"Entry",
"."
] | train | 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... | [
"def",
"parse",
"(",
"self",
",",
"valstr",
")",
":",
"# type: (bytes) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'El Torito Entry already initialized'",
")",
"(",
"self",
".",
"boot_indicator",
... | 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. | [
"A",
"method",
"to",
"parse",
"an",
"El",
"Torito",
"Entry",
"out",
"of",
"a",
"string",
"."
] | train | 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... | [
"def",
"new",
"(",
"self",
",",
"sector_count",
",",
"load_seg",
",",
"media_name",
",",
"system_type",
",",
"bootable",
")",
":",
"# type: (int, int, str, int, bool) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInterna... | 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 -... | [
"A",
"method",
"to",
"create",
"a",
"new",
"El",
"Torito",
"Entry",
"."
] | train | 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... | [
"def",
"set_data_location",
"(",
"self",
",",
"current_extent",
",",
"tag_location",
")",
":",
"# pylint: disable=unused-argument",
"# type: (int, int) -> None",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
... | A method to update the extent (and RBA) for this entry.
Parameters:
current_extent - The new extent to set for this entry.
Returns:
Nothing. | [
"A",
"method",
"to",
"update",
"the",
"extent",
"(",
"and",
"RBA",
")",
"for",
"this",
"entry",
"."
] | train | 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:
... | [
"def",
"set_inode",
"(",
"self",
",",
"ino",
")",
":",
"# type: (inode.Inode) -> None",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'El Torito Entry not yet initialized'",
")",
"self",
".",
"inode",
... | A method to set the Inode associated with this El Torito Entry.
Parameters:
ino - The Inode object corresponding to this entry.
Returns:
Nothing. | [
"A",
"method",
"to",
"set",
"the",
"Inode",
"associated",
"with",
"this",
"El",
"Torito",
"Entry",
"."
] | train | 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... | [
"def",
"record",
"(",
"self",
")",
":",
"# type: () -> bytes",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'El Torito Entry not yet initialized'",
")",
"return",
"struct",
".",
"pack",
"(",
"self",
... | A method to generate a string representing this El Torito Entry.
Parameters:
None.
Returns:
String representing this El Torito Entry. | [
"A",
"method",
"to",
"generate",
"a",
"string",
"representing",
"this",
"El",
"Torito",
"Entry",
"."
] | train | 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... | [
"def",
"set_data_length",
"(",
"self",
",",
"length",
")",
":",
"# type: (int) -> None",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'El Torito Entry not initialized'",
")",
"self",
".",
"sector_count"... | 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. | [
"A",
"method",
"to",
"set",
"the",
"length",
"of",
"data",
"for",
"this",
"El",
"Torito",
"Entry",
"."
] | train | 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('... | [
"def",
"parse",
"(",
"self",
",",
"valstr",
")",
":",
"# type: (bytes) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'El Torito Section Header already initialized'",
")",
"(",
"self",
".",
"header_ind... | Parse an El Torito section header from a string.
Parameters:
valstr - The string to parse.
Returns:
Nothing. | [
"Parse",
"an",
"El",
"Torito",
"section",
"header",
"from",
"a",
"string",
"."
] | train | 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.
... | [
"def",
"new",
"(",
"self",
",",
"id_string",
",",
"platform_id",
")",
":",
"# type: (bytes, int) -> None",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'El Torito Section Header already initialized'",
")",
"# We... | 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",
"."
] | train | 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.
... | [
"def",
"add_parsed_entry",
"(",
"self",
",",
"entry",
")",
":",
"# type: (EltoritoEntry) -> None",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'El Torito Section Header not yet initialized'",
")",
"if",
... | 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.
... | [
"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... | train | 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.
'... | [
"def",
"add_new_entry",
"(",
"self",
",",
"entry",
")",
":",
"# type: (EltoritoEntry) -> None",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'El Torito Section Header not yet initialized'",
")",
"self",
"... | 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",
"."
] | train | 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... | [
"def",
"record",
"(",
"self",
")",
":",
"# type: () -> bytes",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'El Torito Section Header not yet initialized'",
")",
"outlist",
"=",
"[",
"struct",
".",
"p... | Get a string representing this El Torito section header.
Parameters:
None.
Returns:
A string representing this El Torito section header. | [
"Get",
"a",
"string",
"representing",
"this",
"El",
"Torito",
"section",
"header",
"."
] | train | 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:
... | [
"def",
"parse",
"(",
"self",
",",
"valstr",
")",
":",
"# type: (bytes) -> bool",
"if",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'El Torito Boot Catalog already initialized'",
")",
"if",
"self",
".",
"state",
"... | 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. | [
"A",
"method",
"to",
"parse",
"an",
"El",
"Torito",
"Boot",
"Catalog",
"out",
"of",
"a",
"string",
"."
] | train | 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... | [
"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",
"if",
"se... | 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... | [
"A",
"method",
"to",
"create",
"a",
"new",
"El",
"Torito",
"Boot",
"Catalog",
"."
] | train | 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... | [
"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",
"if",
"not",
"self",
".",
"_initialize... | 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... | [
"A",
"method",
"to",
"add",
"an",
"section",
"header",
"and",
"entry",
"to",
"this",
"Boot",
"Catalog",
"."
] | train | 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... | [
"def",
"record",
"(",
"self",
")",
":",
"# type: () -> bytes",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'El Torito Boot Catalog not yet initialized'",
")",
"outlist",
"=",
"[",
"self",
".",
"valid... | A method to generate a string representing this El Torito Boot Catalog.
Parameters:
None.
Returns:
A string representing this El Torito Boot Catalog. | [
"A",
"method",
"to",
"generate",
"a",
"string",
"representing",
"this",
"El",
"Torito",
"Boot",
"Catalog",
"."
] | train | 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:
... | [
"def",
"add_dirrecord",
"(",
"self",
",",
"rec",
")",
":",
"# type: (Union[dr.DirectoryRecord, udfmod.UDFFileEntry]) -> None",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'El Torito Boot Catalog not yet initia... | 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. | [
"A",
"method",
"to",
"set",
"the",
"Directory",
"Record",
"associated",
"with",
"this",
"Boot",
"Catalog",
"."
] | train | 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 ... | [
"def",
"update_catalog_extent",
"(",
"self",
",",
"current_extent",
")",
":",
"# type: (int) -> None",
"if",
"not",
"self",
".",
"_initialized",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInternalError",
"(",
"'El Torito Boot Catalog not yet initialized'",
")",
"self"... | A method to update the extent associated with this Boot Catalog.
Parameters:
current_extent - New extent to associate with this Boot Catalog
Returns:
Nothing. | [
"A",
"method",
"to",
"update",
"the",
"extent",
"associated",
"with",
"this",
"Boot",
"Catalog",
"."
] | train | 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... | [
"def",
"_check_d1_characters",
"(",
"name",
")",
":",
"# type: (bytes) -> None",
"bytename",
"=",
"bytearray",
"(",
"name",
")",
"for",
"char",
"in",
"bytename",
":",
"if",
"char",
"not",
"in",
"_allowed_d1_characters",
":",
"raise",
"pycdlibexception",
".",
"Py... | A function to check that a name only uses d1 characters as defined by ISO9660.
Parameters:
name - The name to check.
Returns:
Nothing. | [
"A",
"function",
"to",
"check",
"that",
"a",
"name",
"only",
"uses",
"d1",
"characters",
"as",
"defined",
"by",
"ISO9660",
"."
] | train | 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... | [
"def",
"_split_iso9660_filename",
"(",
"fullname",
")",
":",
"# type: (bytes) -> Tuple[bytes, bytes, bytes]",
"namesplit",
"=",
"fullname",
".",
"split",
"(",
"b';'",
")",
"version",
"=",
"b''",
"if",
"len",
"(",
"namesplit",
")",
">",
"1",
":",
"version",
"=",
... | 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. | [
"A",
"function",
"to",
"split",
"an",
"ISO",
"9660",
"filename",
"into",
"its",
"constituent",
"parts",
".",
"This",
"is",
"the",
"name",
"the",
"extension",
"and",
"the",
"version",
"number",
"."
] | train | 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... | [
"def",
"_check_iso9660_filename",
"(",
"fullname",
",",
"interchange_level",
")",
":",
"# type: (bytes, int) -> None",
"# Check to ensure the name is a valid filename for the ISO according to",
"# Ecma-119 7.5.",
"(",
"name",
",",
"extension",
",",
"version",
")",
"=",
"_split_... | 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. | [
"A",
"function",
"to",
"check",
"that",
"a",
"file",
"identifier",
"conforms",
"to",
"the",
"ISO9660",
"rules",
"for",
"a",
"particular",
"interchange",
"level",
"."
] | train | 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... | [
"def",
"_check_iso9660_directory",
"(",
"fullname",
",",
"interchange_level",
")",
":",
"# type: (bytes, int) -> None",
"# Check to ensure the directory name is valid for the ISO according to",
"# Ecma-119 7.6.",
"# Ecma-119 section 7.6.1 says that a directory identifier needs at least one",
... | 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. | [
"A",
"function",
"to",
"check",
"that",
"an",
"directory",
"identifier",
"conforms",
"to",
"the",
"ISO9660",
"rules",
"for",
"a",
"particular",
"interchange",
"level",
"."
] | train | 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... | [
"def",
"_interchange_level_from_filename",
"(",
"fullname",
")",
":",
"# type: (bytes) -> int",
"(",
"name",
",",
"extension",
",",
"version",
")",
"=",
"_split_iso9660_filename",
"(",
"fullname",
")",
"interchange_level",
"=",
"1",
"if",
"version",
"!=",
"b''",
"... | 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. | [
"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",
"."
] | train | 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... | [
"def",
"_interchange_level_from_directory",
"(",
"name",
")",
":",
"# type: (bytes) -> int",
"interchange_level",
"=",
"1",
"if",
"len",
"(",
"name",
")",
">",
"8",
":",
"interchange_level",
"=",
"3",
"try",
":",
"_check_d1_characters",
"(",
"name",
")",
"except... | 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. | [
"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",
".... | train | 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... | [
"def",
"_reassign_vd_dirrecord_extents",
"(",
"vd",
",",
"current_extent",
")",
":",
"# type: (headervd.PrimaryOrSupplementaryVD, int) -> Tuple[int, List[inode.Inode]]",
"log_block_size",
"=",
"vd",
".",
"logical_block_size",
"(",
")",
"# Here we re-walk the entire tree, re-assigning... | 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... | [
"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",
... | train | 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 ... | [
"def",
"_yield_children",
"(",
"rec",
")",
":",
"# type: (dr.DirectoryRecord) -> Generator",
"if",
"not",
"rec",
".",
"is_dir",
"(",
")",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInvalidInput",
"(",
"'Record is not a directory!'",
")",
"last",
"=",
"b''",
"for... | 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. | [
"An",
"internal",
"function",
"to",
"gather",
"and",
"yield",
"all",
"of",
"the",
"children",
"of",
"a",
"Directory",
"Record",
"."
] | train | 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... | [
"def",
"_assign_udf_desc_extents",
"(",
"descs",
",",
"start_extent",
")",
":",
"# type: (PyCdlib._UDFDescriptors, int) -> None",
"current_extent",
"=",
"start_extent",
"descs",
".",
"pvd",
".",
"set_extent_location",
"(",
"current_extent",
")",
"current_extent",
"+=",
"1... | 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. | [
"An",
"internal",
"function",
"to",
"assign",
"a",
"consecutive",
"sequence",
"of",
"extents",
"for",
"the",
"given",
"set",
"of",
"UDF",
"Descriptors",
"starting",
"at",
"the",
"given",
"extent",
"."
] | train | 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 ... | [
"def",
"_find_dr_record_by_name",
"(",
"vd",
",",
"path",
",",
"encoding",
")",
":",
"# type: (headervd.PrimaryOrSupplementaryVD, bytes, str) -> dr.DirectoryRecord",
"if",
"not",
"utils",
".",
"starts_with_slash",
"(",
"path",
")",
":",
"raise",
"pycdlibexception",
".",
... | 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... | [
"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",
"... | train | 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:
... | [
"def",
"read",
"(",
"self",
",",
"size",
"=",
"None",
")",
":",
"# type: (Optional[int]) -> bytes",
"if",
"not",
"self",
".",
"_open",
":",
"raise",
"pycdlibexception",
".",
"PyCdlibInvalidInput",
"(",
"'I/O operation on closed file.'",
")",
"if",
"self",
".",
"... | 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,
... | [
"A",
"method",
"to",
"read",
"and",
"return",
"up",
"to",
"size",
"bytes",
"."
] | train | https://github.com/clalancette/pycdlib/blob/1e7b77a809e905d67dc71e12d70e850be26b6233/pycdlib/pycdlib.py#L594-L620 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.