// // Generated by Brutal.Jolt.Generate; do not edit by hand. #nullable enable using Brutal.Interop; using Brutal.Numerics; namespace Brutal.JoltApi { /// /// /// C++: /// Jolt/Core/ByteBuffer.h:15 ///
/// class ByteBuffer : public ByteBufferVector ///
///
/// /// /// Simple byte buffer, aligned to a cache line /// /// [InteropHandle] public readonly partial struct ByteBuffer : IDisposable { public static ByteBuffer Create() => Jolt.PInvoke.ByteBuffer_Create(); /// /// /// C++: /// Jolt/Core/ByteBuffer.h:19 ///
/// size_t Align(size_t inSize) ///
///
/// /// /// Align the size to a multiple of inSize, returns the length after alignment /// /// public nuint Align(ByteSize size) => Jolt.PInvoke.ByteBuffer_Align(this, (nuint)size); public void Dispose() => Jolt.PInvoke.ByteBuffer_Destroy(this); } }