API Reference > Other Classes > OdFlatMemStream Class > OdFlatMemStream Methods > OdFlatMemStream::createNew Method
OdFlatMemStream::createNew Method
Syntax
C++
static OdFlatMemStreamPtr createNew(void* buffer, OdUInt64 numBytes, OdUInt64 curPosition = 0);
Parameters 
Description 
void* buffer 
[in] Character buffer.  
OdUInt64 numBytes 
[in] Number of bytes.  
OdUInt64 curPosition = 0 
[in] Initial position of the file pointer of the new object. 

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

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