From c70991d7c2e57506c7f3c26ccb456ff69b8fea6b Mon Sep 17 00:00:00 2001 From: teach310 Date: Mon, 6 Nov 2023 23:06:47 +0900 Subject: [PATCH 1/2] set SafeHandle publish to internal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 公開する必要なく、ドキュメントに載せたくないため --- .../Runtime/SafeNativeATTRequestHandle.cs | 2 +- .../Runtime/SafeNativeATTRequestsHandle.cs | 2 +- .../Runtime/SafeNativePeripheralManagerHandle.cs | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Packages/com.teach310.core-bluetooth-for-unity/Runtime/SafeNativeATTRequestHandle.cs b/Packages/com.teach310.core-bluetooth-for-unity/Runtime/SafeNativeATTRequestHandle.cs index 3c677d0..fb147db 100644 --- a/Packages/com.teach310.core-bluetooth-for-unity/Runtime/SafeNativeATTRequestHandle.cs +++ b/Packages/com.teach310.core-bluetooth-for-unity/Runtime/SafeNativeATTRequestHandle.cs @@ -3,7 +3,7 @@ namespace CoreBluetooth { - public class SafeNativeATTRequestHandle : SafeHandle + internal class SafeNativeATTRequestHandle : SafeHandle { public override bool IsInvalid => handle == IntPtr.Zero; diff --git a/Packages/com.teach310.core-bluetooth-for-unity/Runtime/SafeNativeATTRequestsHandle.cs b/Packages/com.teach310.core-bluetooth-for-unity/Runtime/SafeNativeATTRequestsHandle.cs index de39d2b..f756558 100644 --- a/Packages/com.teach310.core-bluetooth-for-unity/Runtime/SafeNativeATTRequestsHandle.cs +++ b/Packages/com.teach310.core-bluetooth-for-unity/Runtime/SafeNativeATTRequestsHandle.cs @@ -3,7 +3,7 @@ namespace CoreBluetooth { - public class SafeNativeATTRequestsHandle : SafeHandle + internal class SafeNativeATTRequestsHandle : SafeHandle { public override bool IsInvalid => handle == IntPtr.Zero; diff --git a/Packages/com.teach310.core-bluetooth-for-unity/Runtime/SafeNativePeripheralManagerHandle.cs b/Packages/com.teach310.core-bluetooth-for-unity/Runtime/SafeNativePeripheralManagerHandle.cs index 01bed52..b3737dd 100644 --- a/Packages/com.teach310.core-bluetooth-for-unity/Runtime/SafeNativePeripheralManagerHandle.cs +++ b/Packages/com.teach310.core-bluetooth-for-unity/Runtime/SafeNativePeripheralManagerHandle.cs @@ -3,7 +3,7 @@ namespace CoreBluetooth { - public class SafeNativePeripheralManagerHandle : SafeHandleZeroOrMinusOneIsInvalid + internal class SafeNativePeripheralManagerHandle : SafeHandleZeroOrMinusOneIsInvalid { SafeNativePeripheralManagerHandle() : base(true) { } From 518f7b471f920e93f923e1ab25f79e96e1a88e87 Mon Sep 17 00:00:00 2001 From: teach310 Date: Mon, 6 Nov 2023 23:09:28 +0900 Subject: [PATCH 2/2] IsCBUUID public to internal MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 公開して必要になるケースが思い浮かばないため。 --- .../Runtime/StringExtensions.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Packages/com.teach310.core-bluetooth-for-unity/Runtime/StringExtensions.cs b/Packages/com.teach310.core-bluetooth-for-unity/Runtime/StringExtensions.cs index 4963bf0..8c56838 100644 --- a/Packages/com.teach310.core-bluetooth-for-unity/Runtime/StringExtensions.cs +++ b/Packages/com.teach310.core-bluetooth-for-unity/Runtime/StringExtensions.cs @@ -2,7 +2,7 @@ namespace CoreBluetooth { - public static class StringExtensions + internal static class StringExtensions { private static readonly Regex CBUUIDRegex = new Regex(@"^([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}|[0-9a-f]{8}|[0-9a-f]{4})$", RegexOptions.IgnoreCase);