MCPcopy Create free account
hub / github.com/cuberite/cuberite / GetChunkData

Method GetChunkData

src/WorldStorage/WSSCompact.cpp:222–231  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

220
221
222bool cWSSCompact::GetChunkData(const cChunkCoords & a_Chunk, int & a_UncompressedSize, AString & a_Data)
223{
224 cCSLock Lock(m_CS);
225 cPAKFile * f = LoadPAKFile(a_Chunk);
226 if (f == NULL)
227 {
228 return false;
229 }
230 return f->GetChunkData(a_Chunk, a_UncompressedSize, a_Data);
231}
232
233
234

Callers 1

SaveChunkToDataMethod · 0.45

Calls 3

beginMethod · 0.80
endMethod · 0.80
sizeMethod · 0.80

Tested by

no test coverage detected