Skip to content

Commit 38c8658

Browse files
authored
Merge pull request #87 from teach310/feature/remove_marshal
remove redunadnt Marshal attribute
2 parents 1d8461b + ec05b25 commit 38c8658

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Packages/com.teach310.core-bluetooth-for-unity/Runtime/NativeMethods.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ int subscribedCentralsCount
246246
internal static extern SafeNativeMutableCharacteristicHandle cb4u_mutable_characteristic_new(
247247
[MarshalAs(UnmanagedType.LPStr), In] string uuid,
248248
int properties,
249-
[MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.U1, SizeParamIndex = 3)] byte[] dataBytes,
249+
byte[] dataBytes,
250250
int dataLength,
251251
int permissions
252252
);
@@ -258,7 +258,7 @@ int permissions
258258
internal static extern int cb4u_mutable_characteristic_value(SafeNativeMutableCharacteristicHandle handle, byte[] dataBytes, int dataLength);
259259

260260
[DllImport(DLL_NAME, CallingConvention = CallingConvention.Cdecl)]
261-
internal static extern void cb4u_mutable_characteristic_set_value(SafeNativeMutableCharacteristicHandle handle, [MarshalAs(UnmanagedType.LPArray, ArraySubType = UnmanagedType.U1, SizeParamIndex = 2), In] byte[] dataBytes, int dataLength);
261+
internal static extern void cb4u_mutable_characteristic_set_value(SafeNativeMutableCharacteristicHandle handle, byte[] dataBytes, int dataLength);
262262

263263
[DllImport(DLL_NAME, CallingConvention = CallingConvention.Cdecl)]
264264
internal static extern int cb4u_mutable_characteristic_properties(SafeNativeMutableCharacteristicHandle handle);

Packages/com.teach310.core-bluetooth-for-unity/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.teach310.core-bluetooth-for-unity",
3-
"version": "0.4.4",
3+
"version": "0.4.5",
44
"displayName": "CoreBluetooth",
55
"description": "Provides native Apple CoreBluetooth integration for use with Unity.",
66
"unity": "2022.3",

0 commit comments

Comments
 (0)