diff --git a/src/Reloaded.Memory/PublicAPI/net48/PublicAPI.Unshipped.txt b/src/Reloaded.Memory/PublicAPI/net48/PublicAPI.Unshipped.txt index f6ed425..47938fb 100644 --- a/src/Reloaded.Memory/PublicAPI/net48/PublicAPI.Unshipped.txt +++ b/src/Reloaded.Memory/PublicAPI/net48/PublicAPI.Unshipped.txt @@ -9,12 +9,16 @@ Reloaded.Memory.Utilities.CircularBufferStruct.Add(byte* data, uint length) -> n Reloaded.Memory.Utilities.CircularBufferStruct.Add(T value) -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Add(TSource source, T value) -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Add(TSource source, byte* data, uint length) -> nuint -Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit(uint itemSize) -> Reloaded.Memory.Utilities.ItemFit -Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit() -> Reloaded.Memory.Utilities.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit(uint itemSize) -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit() -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit Reloaded.Memory.Utilities.CircularBufferStruct.CircularBufferStruct() -> void Reloaded.Memory.Utilities.CircularBufferStruct.CircularBufferStruct(nuint start, int size) -> void Reloaded.Memory.Utilities.CircularBufferStruct.Current.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.End.get -> nuint +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.No = 2 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.StartOfBuffer = 1 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.Yes = 0 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit Reloaded.Memory.Utilities.CircularBufferStruct.Remaining.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Size.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Start.get -> nuint diff --git a/src/Reloaded.Memory/PublicAPI/net5.0/PublicAPI.Unshipped.txt b/src/Reloaded.Memory/PublicAPI/net5.0/PublicAPI.Unshipped.txt index f6ed425..47938fb 100644 --- a/src/Reloaded.Memory/PublicAPI/net5.0/PublicAPI.Unshipped.txt +++ b/src/Reloaded.Memory/PublicAPI/net5.0/PublicAPI.Unshipped.txt @@ -9,12 +9,16 @@ Reloaded.Memory.Utilities.CircularBufferStruct.Add(byte* data, uint length) -> n Reloaded.Memory.Utilities.CircularBufferStruct.Add(T value) -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Add(TSource source, T value) -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Add(TSource source, byte* data, uint length) -> nuint -Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit(uint itemSize) -> Reloaded.Memory.Utilities.ItemFit -Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit() -> Reloaded.Memory.Utilities.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit(uint itemSize) -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit() -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit Reloaded.Memory.Utilities.CircularBufferStruct.CircularBufferStruct() -> void Reloaded.Memory.Utilities.CircularBufferStruct.CircularBufferStruct(nuint start, int size) -> void Reloaded.Memory.Utilities.CircularBufferStruct.Current.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.End.get -> nuint +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.No = 2 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.StartOfBuffer = 1 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.Yes = 0 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit Reloaded.Memory.Utilities.CircularBufferStruct.Remaining.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Size.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Start.get -> nuint diff --git a/src/Reloaded.Memory/PublicAPI/net6.0/PublicAPI.Unshipped.txt b/src/Reloaded.Memory/PublicAPI/net6.0/PublicAPI.Unshipped.txt index f6ed425..47938fb 100644 --- a/src/Reloaded.Memory/PublicAPI/net6.0/PublicAPI.Unshipped.txt +++ b/src/Reloaded.Memory/PublicAPI/net6.0/PublicAPI.Unshipped.txt @@ -9,12 +9,16 @@ Reloaded.Memory.Utilities.CircularBufferStruct.Add(byte* data, uint length) -> n Reloaded.Memory.Utilities.CircularBufferStruct.Add(T value) -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Add(TSource source, T value) -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Add(TSource source, byte* data, uint length) -> nuint -Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit(uint itemSize) -> Reloaded.Memory.Utilities.ItemFit -Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit() -> Reloaded.Memory.Utilities.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit(uint itemSize) -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit() -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit Reloaded.Memory.Utilities.CircularBufferStruct.CircularBufferStruct() -> void Reloaded.Memory.Utilities.CircularBufferStruct.CircularBufferStruct(nuint start, int size) -> void Reloaded.Memory.Utilities.CircularBufferStruct.Current.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.End.get -> nuint +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.No = 2 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.StartOfBuffer = 1 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.Yes = 0 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit Reloaded.Memory.Utilities.CircularBufferStruct.Remaining.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Size.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Start.get -> nuint diff --git a/src/Reloaded.Memory/PublicAPI/net7.0/PublicAPI.Unshipped.txt b/src/Reloaded.Memory/PublicAPI/net7.0/PublicAPI.Unshipped.txt index f6ed425..47938fb 100644 --- a/src/Reloaded.Memory/PublicAPI/net7.0/PublicAPI.Unshipped.txt +++ b/src/Reloaded.Memory/PublicAPI/net7.0/PublicAPI.Unshipped.txt @@ -9,12 +9,16 @@ Reloaded.Memory.Utilities.CircularBufferStruct.Add(byte* data, uint length) -> n Reloaded.Memory.Utilities.CircularBufferStruct.Add(T value) -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Add(TSource source, T value) -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Add(TSource source, byte* data, uint length) -> nuint -Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit(uint itemSize) -> Reloaded.Memory.Utilities.ItemFit -Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit() -> Reloaded.Memory.Utilities.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit(uint itemSize) -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit() -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit Reloaded.Memory.Utilities.CircularBufferStruct.CircularBufferStruct() -> void Reloaded.Memory.Utilities.CircularBufferStruct.CircularBufferStruct(nuint start, int size) -> void Reloaded.Memory.Utilities.CircularBufferStruct.Current.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.End.get -> nuint +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.No = 2 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.StartOfBuffer = 1 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.Yes = 0 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit Reloaded.Memory.Utilities.CircularBufferStruct.Remaining.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Size.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Start.get -> nuint diff --git a/src/Reloaded.Memory/PublicAPI/net8.0/PublicAPI.Unshipped.txt b/src/Reloaded.Memory/PublicAPI/net8.0/PublicAPI.Unshipped.txt index f6ed425..47938fb 100644 --- a/src/Reloaded.Memory/PublicAPI/net8.0/PublicAPI.Unshipped.txt +++ b/src/Reloaded.Memory/PublicAPI/net8.0/PublicAPI.Unshipped.txt @@ -9,12 +9,16 @@ Reloaded.Memory.Utilities.CircularBufferStruct.Add(byte* data, uint length) -> n Reloaded.Memory.Utilities.CircularBufferStruct.Add(T value) -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Add(TSource source, T value) -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Add(TSource source, byte* data, uint length) -> nuint -Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit(uint itemSize) -> Reloaded.Memory.Utilities.ItemFit -Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit() -> Reloaded.Memory.Utilities.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit(uint itemSize) -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit() -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit Reloaded.Memory.Utilities.CircularBufferStruct.CircularBufferStruct() -> void Reloaded.Memory.Utilities.CircularBufferStruct.CircularBufferStruct(nuint start, int size) -> void Reloaded.Memory.Utilities.CircularBufferStruct.Current.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.End.get -> nuint +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.No = 2 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.StartOfBuffer = 1 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.Yes = 0 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit Reloaded.Memory.Utilities.CircularBufferStruct.Remaining.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Size.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Start.get -> nuint diff --git a/src/Reloaded.Memory/PublicAPI/netcoreapp3.1/PublicAPI.Unshipped.txt b/src/Reloaded.Memory/PublicAPI/netcoreapp3.1/PublicAPI.Unshipped.txt index f6ed425..47938fb 100644 --- a/src/Reloaded.Memory/PublicAPI/netcoreapp3.1/PublicAPI.Unshipped.txt +++ b/src/Reloaded.Memory/PublicAPI/netcoreapp3.1/PublicAPI.Unshipped.txt @@ -9,12 +9,16 @@ Reloaded.Memory.Utilities.CircularBufferStruct.Add(byte* data, uint length) -> n Reloaded.Memory.Utilities.CircularBufferStruct.Add(T value) -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Add(TSource source, T value) -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Add(TSource source, byte* data, uint length) -> nuint -Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit(uint itemSize) -> Reloaded.Memory.Utilities.ItemFit -Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit() -> Reloaded.Memory.Utilities.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit(uint itemSize) -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit() -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit Reloaded.Memory.Utilities.CircularBufferStruct.CircularBufferStruct() -> void Reloaded.Memory.Utilities.CircularBufferStruct.CircularBufferStruct(nuint start, int size) -> void Reloaded.Memory.Utilities.CircularBufferStruct.Current.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.End.get -> nuint +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.No = 2 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.StartOfBuffer = 1 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.Yes = 0 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit Reloaded.Memory.Utilities.CircularBufferStruct.Remaining.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Size.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Start.get -> nuint diff --git a/src/Reloaded.Memory/PublicAPI/netstandard2.0/PublicAPI.Unshipped.txt b/src/Reloaded.Memory/PublicAPI/netstandard2.0/PublicAPI.Unshipped.txt index f6ed425..47938fb 100644 --- a/src/Reloaded.Memory/PublicAPI/netstandard2.0/PublicAPI.Unshipped.txt +++ b/src/Reloaded.Memory/PublicAPI/netstandard2.0/PublicAPI.Unshipped.txt @@ -9,12 +9,16 @@ Reloaded.Memory.Utilities.CircularBufferStruct.Add(byte* data, uint length) -> n Reloaded.Memory.Utilities.CircularBufferStruct.Add(T value) -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Add(TSource source, T value) -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Add(TSource source, byte* data, uint length) -> nuint -Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit(uint itemSize) -> Reloaded.Memory.Utilities.ItemFit -Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit() -> Reloaded.Memory.Utilities.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit(uint itemSize) -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit() -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit Reloaded.Memory.Utilities.CircularBufferStruct.CircularBufferStruct() -> void Reloaded.Memory.Utilities.CircularBufferStruct.CircularBufferStruct(nuint start, int size) -> void Reloaded.Memory.Utilities.CircularBufferStruct.Current.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.End.get -> nuint +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.No = 2 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.StartOfBuffer = 1 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.Yes = 0 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit Reloaded.Memory.Utilities.CircularBufferStruct.Remaining.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Size.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Start.get -> nuint diff --git a/src/Reloaded.Memory/PublicAPI/netstandard2.1/PublicAPI.Unshipped.txt b/src/Reloaded.Memory/PublicAPI/netstandard2.1/PublicAPI.Unshipped.txt index f6ed425..47938fb 100644 --- a/src/Reloaded.Memory/PublicAPI/netstandard2.1/PublicAPI.Unshipped.txt +++ b/src/Reloaded.Memory/PublicAPI/netstandard2.1/PublicAPI.Unshipped.txt @@ -9,12 +9,16 @@ Reloaded.Memory.Utilities.CircularBufferStruct.Add(byte* data, uint length) -> n Reloaded.Memory.Utilities.CircularBufferStruct.Add(T value) -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Add(TSource source, T value) -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Add(TSource source, byte* data, uint length) -> nuint -Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit(uint itemSize) -> Reloaded.Memory.Utilities.ItemFit -Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit() -> Reloaded.Memory.Utilities.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit(uint itemSize) -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.CanItemFit() -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit Reloaded.Memory.Utilities.CircularBufferStruct.CircularBufferStruct() -> void Reloaded.Memory.Utilities.CircularBufferStruct.CircularBufferStruct(nuint start, int size) -> void Reloaded.Memory.Utilities.CircularBufferStruct.Current.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.End.get -> nuint +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.No = 2 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.StartOfBuffer = 1 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit +Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit.Yes = 0 -> Reloaded.Memory.Utilities.CircularBufferStruct.ItemFit Reloaded.Memory.Utilities.CircularBufferStruct.Remaining.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Size.get -> nuint Reloaded.Memory.Utilities.CircularBufferStruct.Start.get -> nuint diff --git a/src/Reloaded.Memory/Utilities/CircularBufferStruct.cs b/src/Reloaded.Memory/Utilities/CircularBufferStruct.cs index b0a3b5c..83d6f87 100644 --- a/src/Reloaded.Memory/Utilities/CircularBufferStruct.cs +++ b/src/Reloaded.Memory/Utilities/CircularBufferStruct.cs @@ -233,25 +233,25 @@ public ItemFit CanItemFit() where T : unmanaged return ItemFit.No; } -} - -/// -/// Possible results for whether the item can fit. -/// -public enum ItemFit -{ - /// - /// The item can fit into the buffer. - /// - Yes, - - /// - /// The item can fit into the buffer, but not in the remaining space (will be placed at start of buffer). - /// - StartOfBuffer, /// - /// The item is too large to fit into the buffer. + /// Possible results for whether the item can fit. /// - No + public enum ItemFit + { + /// + /// The item can fit into the buffer. + /// + Yes, + + /// + /// The item can fit into the buffer, but not in the remaining space (will be placed at start of buffer). + /// + StartOfBuffer, + + /// + /// The item is too large to fit into the buffer. + /// + No + } }