MemoryBlock Asset: Difference between revisions

From COD Engine Research
Created page with "__NOTOC__ Category:Assets Category:BO2 This asset exists only in Black Ops 2. <source lang="cpp"> #pragma pack(push, 4) struct MemoryBlock // 0x14 { const char *name;..."
 
No edit summary
 
Line 4: Line 4:
This asset exists only in Black Ops 2.
This asset exists only in Black Ops 2.
<source lang="cpp">
<source lang="cpp">
#pragma pack(push, 4)
struct MemoryBlock
struct MemoryBlock // 0x14
{
{
const char *name;
  const char *name;
bool unknown1; // if true: DB_PushStreamPos(1)
  bool mainMem; // if true: DB_PushStreamPos(1)
bool unknown2; // else if true: DB_PushStreamPos(2)
  bool videoMem; // else if true: DB_PushStreamPos(2)
bool unknown3; // else if true: DB_PushStreamPos(7)
  bool streamMem; // else if true: DB_PushStreamPos(7)
int len;
  unsigned int size;
int unknown4; // DB_AllocStreamPos(unknown4 - 1)
  unsigned int alignment;
char *data; // size = len
  char *data;
};
};
#pragma pack(pop)
</source>
</source>

Latest revision as of 01:34, 21 December 2014

This asset exists only in Black Ops 2.

struct MemoryBlock
{
  const char *name;
  bool mainMem;		// if true: DB_PushStreamPos(1)
  bool videoMem;	// else if true: DB_PushStreamPos(2)
  bool streamMem;	// else if true: DB_PushStreamPos(7)
  unsigned int size;
  unsigned int alignment;
  char *data;
};