MCPcopy Create free account
hub / github.com/beefytech/Beef / ReadUnicode32SizedString

Method ReadUnicode32SizedString

BeefySysLib/DataStream.cpp:115–129  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113}
114
115String DataStream::ReadUnicode32SizedString()
116{
117 int size = ReadInt32();
118
119 UTF16String aString;
120 aString.ResizeRaw(size + 1);
121 aString[size] = 0;
122 Read((void*)aString.c_str(), size * 2);
123
124 if (mBigEndian)
125 for (int i = 0; i < (int) aString.length(); i++)
126 aString[i] = FromBigEndian((int16) aString[i]);
127
128 return UTF8Encode(aString);
129}
130
131String DataStream::ReadSZ()
132{

Callers 3

ReadPSDValueMethod · 0.80
ReadPSDDescriptorMethod · 0.80
ReadExtraInfoMethod · 0.80

Calls 5

ReadFunction · 0.85
FromBigEndianFunction · 0.85
ResizeRawMethod · 0.45
c_strMethod · 0.45
lengthMethod · 0.45

Tested by

no test coverage detected