From 868cd94ee9a5a0638c014a4cc42224f01ff234c8 Mon Sep 17 00:00:00 2001 From: Tiger Wang Date: Fri, 5 Mar 2021 13:03:55 +0000 Subject: Prepare ChunkData for BlockState storage (#5105) * Rename ChunkData Creatable test * Add missing Y-check in RedstoneWireHandler * Remove ChunkDef.h dependency in Scoreboard * Prepare ChunkData for BlockState storage + Split chunk block, meta, block & sky light storage + Load the height map from disk - Reduce duplicated code in ChunkData - Remove saving MCSBiomes, there aren't any - Remove the allocation pool, ref #4315, #3864 * fixed build * fixed test * fixed the debug compile Co-authored-by: 12xx12 <44411062+12xx12@users.noreply.github.com> --- src/ByteBuffer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ByteBuffer.h') diff --git a/src/ByteBuffer.h b/src/ByteBuffer.h index f730c594e..7b589f341 100644 --- a/src/ByteBuffer.h +++ b/src/ByteBuffer.h @@ -113,6 +113,9 @@ public: /** Writes a_Count bytes into a_Buffer; returns true if successful */ bool WriteBuf(const void * a_Buffer, size_t a_Count); + /** Writes a_Count bytes into a_Buffer; returns true if successful */ + bool WriteBuf(size_t a_Count, unsigned char a_Value); + /** Reads a_Count bytes into a_String; returns true if successful */ bool ReadSome(ContiguousByteBuffer & a_String, size_t a_Count); -- cgit v1.2.3