MCPcopy Create free account
hub / github.com/buggins/coolreader / LVCreateMemoryStream

Function LVCreateMemoryStream

crengine/src/lvstream.cpp:3070–3080  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3068}
3069
3070LVStreamRef LVCreateMemoryStream( void * buf, int bufSize, bool createCopy, lvopen_mode_t mode )
3071{
3072 LVMemoryStream * stream = new LVMemoryStream();
3073 if ( !buf )
3074 stream->Create();
3075 else if ( createCopy )
3076 stream->CreateCopy( (lUInt8*)buf, bufSize, mode );
3077 else
3078 stream->Open( (lUInt8*)buf, bufSize );
3079 return LVStreamRef( stream );
3080}
3081
3082LVStreamRef LVCreateMemoryStream( LVStreamRef srcStream )
3083{

Callers 10

OpenFromMemoryMethod · 0.85
saveToStreamMethod · 0.85
saveToStreamMethod · 0.85
readStreamMethod · 0.85
getBlobMethod · 0.85
jbyteArrayToStreamMethod · 0.85
bGetUserDataFunction · 0.85
vSetUserDataFunction · 0.85

Calls 6

LVOpenFileStreamFunction · 0.85
CreateCopyMethod · 0.80
OpenMethod · 0.80
CreateMethod · 0.45
c_strMethod · 0.45
isNullMethod · 0.45

Tested by

no test coverage detected