MCPcopy Create free account
hub / github.com/OpenRCT2/OpenRCT2 / ReadFromBuffer

Function ReadFromBuffer

src/openrct2/core/Imaging.cpp:327–331  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

325 }
326
327 Image ReadFromBuffer(const std::vector<uint8_t>& buffer, ImageFormat format)
328 {
329 ivstream<uint8_t> istream(buffer);
330 return ReadFromStream(istream, format);
331 }
332
333 void WriteToFile(std::string_view path, const Image& image, ImageFormat format)
334 {

Callers 3

ParseImagesMethod · 0.85
GetImageSourcesMethod · 0.85
GetBufferFromPixelDataFunction · 0.85

Calls 1

ReadFromStreamFunction · 0.85

Tested by

no test coverage detected