Added extent_address constructor.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@5527 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
ead0c3e203
commit
c21aaa8af4
@ -5,12 +5,12 @@
|
|||||||
// Copyright (c) 2003 Tyler Dauwalder, tyler@dauwalder.net
|
// Copyright (c) 2003 Tyler Dauwalder, tyler@dauwalder.net
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
/*! \file DiskStructures.cpp
|
/*! \file UdfStructures.cpp
|
||||||
|
|
||||||
UDF on-disk data structure definitions
|
UDF on-disk data structure definitions
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include "DiskStructures.h"
|
#include "UdfStructures.h"
|
||||||
|
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
@ -192,6 +192,12 @@ entity_id::matches(const entity_id &id) const
|
|||||||
// extent_address
|
// extent_address
|
||||||
//----------------------------------------------------------------------
|
//----------------------------------------------------------------------
|
||||||
|
|
||||||
|
extent_address::extent_address(uint32 location, uint32 length)
|
||||||
|
{
|
||||||
|
set_location(location);
|
||||||
|
set_length(length);
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
extent_address::dump() const
|
extent_address::dump() const
|
||||||
{
|
{
|
||||||
|
@ -17,7 +17,7 @@
|
|||||||
|
|
||||||
#include "Array.h"
|
#include "Array.h"
|
||||||
|
|
||||||
/*! \file DiskStructures.h
|
/*! \file UdfStructures.h
|
||||||
|
|
||||||
\brief UDF on-disk data structure declarations
|
\brief UDF on-disk data structure declarations
|
||||||
|
|
||||||
@ -245,6 +245,8 @@ extern const char* kVSDID_ECMA168;
|
|||||||
*/
|
*/
|
||||||
struct extent_address {
|
struct extent_address {
|
||||||
public:
|
public:
|
||||||
|
extent_address(uint32 location = 0, uint32 length = 0);
|
||||||
|
|
||||||
void dump() const;
|
void dump() const;
|
||||||
|
|
||||||
uint32 length() const { return B_LENDIAN_TO_HOST_INT32(_length); }
|
uint32 length() const { return B_LENDIAN_TO_HOST_INT32(_length); }
|
||||||
|
Loading…
Reference in New Issue
Block a user