UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
SharedBuffer.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "HAL/Platform.h"
6#include "Trace/Config.h"
7
8#if TRACE_PRIVATE_MINIMAL_ENABLED && TRACE_PRIVATE_ALLOW_IMPORTANTS
9
10namespace UE {
11namespace Trace {
12namespace Private {
13
15struct FSharedBuffer
16{
17 enum : uint32 { CursorShift = 10 };
18 enum : uint32 { RefBit = 1 << 0 };
19 enum : uint32 { RefInit = (1 << CursorShift) - 1 };
20 enum : uint32 { MaxSize = 1 << (32 - CursorShift - 1) };
21
22 int32 volatile Cursor; // also packs in a ref count.
27};
28
31{
34};
35
36} // namespace Private
37} // namespace Trace
38} // namespace UE
39
40#endif // TRACE_PRIVATE_MINIMAL_ENABLED && TRACE_PRIVATE_ALLOW_IMPORTANTS
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
uint32 Size
Definition VulkanMemory.cpp:4034
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition SharedBuffer.h:341
@ Trace
Definition NetTraceConfig.h:23
Definition OverriddenPropertySet.cpp:45
@ _Unused
Definition Transport.h:13
Definition AdvancedWidgetsModule.cpp:13