MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / writeWorldMetadata

Method writeWorldMetadata

source/game/StarWorldStorage.cpp:455–462  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

453}
454
455ByteArray WorldStorage::writeWorldMetadata(WorldMetadataStore const& metadata) {
456 DataStreamBuffer ds;
457
458 ds.write(metadata.worldSize);
459 ds.write(metadata.userMetadata);
460
461 return compressData(ds.data());
462}
463
464ByteArray WorldStorage::entitySectorKey(Sector const& sector) {
465 DataStreamBuffer ds(5);

Callers

nothing calls this directly

Calls 3

compressDataFunction · 0.85
writeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected