API Reference > Other Classes > OdFlatMemStreamManaged Class > OdFlatMemStreamManaged Methods > OdFlatMemStreamManaged::createNew Method
OdFlatMemStreamManaged::createNew Method
Syntax
C++
static OdFlatMemStreamPtr createNew(OdUInt64 numBytes);
Parameters 
Description 
OdUInt64 numBytes 
[in] Number of bytes. 

Creates a new FlatMemStream object, and returns a SmartPointer to the new object.

Memory is allocated via odrxAlloc() and is freed via odrxFree() in destructor;

Copyright © 2002–2020. Open Design Alliance. All rights reserved.