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

Function LVCreateStringStream

crengine/src/lvstream.cpp:3057–3062  ·  view source on GitHub ↗

Creates memory stream as copy of string contents

Source from the content-addressed store, hash-verified

3055
3056/// Creates memory stream as copy of string contents
3057LVStreamRef LVCreateStringStream( lString8 data )
3058{
3059 LVMemoryStream * stream = new LVMemoryStream();
3060 stream->CreateCopy( (const lUInt8*)data.c_str(), data.length(), LVOM_READ );
3061 return LVStreamRef( stream );
3062}
3063
3064/// Creates memory stream as copy of string contents
3065LVStreamRef LVCreateStringStream( lString16 data )

Callers 4

openMethod · 0.85
translateMethod · 0.85
setTranslationMethod · 0.85
CRViewDialogMethod · 0.85

Calls 4

UnicodeToUtf8Function · 0.85
CreateCopyMethod · 0.80
c_strMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected