4#ifndef _Stroika_Foundation_Memory_StackBuffer_h_
5#define _Stroika_Foundation_Memory_StackBuffer_h_ 1
7#include "Stroika/Foundation/StroikaPreComp.h"
17namespace Stroika::Foundation::Memory {
26 qStroika_Foundation_Common_Platform_Windows ? (
sizeof (int) == 4 ? 4 : 8) * 1024 : 16 * 1024;
37 template <
typename T =
byte>
38 constexpr size_t StackBuffer_DefaultInlineSize ()
58 template <typename T = byte, size_t BUF_SIZE = StackBuffer_DefaultInlineSize<T> ()>
constexpr size_t kStackBuffer_SizeIfLargerStackGuardCalled
constexpr size_t kStackBuffer_TargetInlineByteBufferSize
Logically halfway between std::array and std::vector; Smart 'direct memory array' - which when needed...