Memory.h 332 B

1234567891011121314
  1. // SPDX-FileCopyrightText: 2021 Jorrit Rouwe
  2. // SPDX-License-Identifier: MIT
  3. #pragma once
  4. namespace JPH {
  5. /// Allocate a block of memory aligned to inAlignment bytes of size inSize
  6. void *AlignedAlloc(size_t inSize, size_t inAlignment);
  7. /// Free memory block allocated with AlignedAlloc
  8. void AlignedFree(void *inBlock);
  9. } // JPH