From 807c1dfe8a897f9c61bf3549ff2566917b53023b Mon Sep 17 00:00:00 2001 From: crupest Date: Mon, 24 Jun 2024 00:06:25 +0800 Subject: feat: fix linux build, complete PosixSpawnSubProcess. NEED TEST: BufferStream, AutoReadStream, SubProcess. --- include/cru/common/Buffer.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include/cru/common/Buffer.h') diff --git a/include/cru/common/Buffer.h b/include/cru/common/Buffer.h index 2c3b7b87..bc2e2a26 100644 --- a/include/cru/common/Buffer.h +++ b/include/cru/common/Buffer.h @@ -91,6 +91,8 @@ class Buffer final { Index PushBack(const std::byte* other, Index other_size, bool use_memmove = false); + void PushBackCount(Index count); + /** * @brief Move forward the used-begin ptr. * @return The actual size moved forward. @@ -146,6 +148,8 @@ class Buffer final { void Move_(Buffer&& other) noexcept; void Delete_() noexcept; + void AssertValid(); + private: std::byte* ptr_; Index size_; -- cgit v1.2.3