Added volume_structure_descriptor_header constructor.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5547 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -106,6 +106,14 @@ const char *Udf::tag_id_to_string(tag_id id)
|
||||
// volume_structure_descriptor_header
|
||||
//----------------------------------------------------------------------
|
||||
|
||||
volume_structure_descriptor_header::volume_structure_descriptor_header(uint8 type, const char *_id, uint8 version)
|
||||
: type(type)
|
||||
, version(version)
|
||||
{
|
||||
memcpy(id, _id, 5);
|
||||
}
|
||||
|
||||
|
||||
/*! \brief Returns true if the given \a id matches the header's id.
|
||||
*/
|
||||
bool
|
||||
|
||||
@@ -216,6 +216,9 @@ extern const entity_id kVirtualPartitionMapId;
|
||||
See also: ECMA 167 2/9.1
|
||||
*/
|
||||
struct volume_structure_descriptor_header {
|
||||
public:
|
||||
volume_structure_descriptor_header(uint8 type, const char *id, uint8 version);
|
||||
|
||||
uint8 type;
|
||||
char id[5];
|
||||
uint8 version;
|
||||
|
||||
Reference in New Issue
Block a user