This repository has been archived by the owner on Feb 26, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Exomia.Native.Allocator
Daniel Baetz edited this page Jun 22, 2019
·
18 revisions
A byte array allocator. This class cannot be inherited.
public class Exomia.Native.Allocator.ByteArrayAllocator
: IDisposable
.ctor
ByteArrayAllocator(Int32
size, Byte
capacity = 64)
Initializes a new instance of the Exomia.Native.Allocator.ByteArrayAllocator class.
-
size
- size. -
capacity
- (Optional) capacity.
void
Dispose()A byte array pool 2 allocator. This class cannot be inherited.
public class Exomia.Native.Allocator.ByteArrayPool2Allocator
: IDisposable
.ctor
ByteArrayPool2Allocator(Byte[]
bucketCapacity, Int32
shift)
Initializes a new instance of the Exomia.Native.Allocator.ByteArrayPool2Allocator class.
-
bucketCapacity
- bucketCapacity. -
shift
- shift.
void
Dispose()void
Free(Byte*
ptr, Int32
size)
free a byte array.
-
ptr
- [in,out] ptr. -
size
- size of ptr.
A byte array pool allocator. This class cannot be inherited.
public class Exomia.Native.Allocator.ByteArrayPoolAllocator
: IDisposable
.ctor
ByteArrayPoolAllocator(Byte[]
bucketCapacity, Int32
shift)
Initializes a new instance of the Exomia.Native.Allocator.ByteArrayPoolAllocator class.
-
bucketCapacity
- bucketCapacity. -
shift
- shift.
void
Dispose()void
Free(Byte*
ptr, Int32
size)
free a byte array.
-
ptr
- [in,out] ptr. -
size
- size of ptr.