com.shinolab.autd3-sdk.pattern 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Pattern.cs
CHANGED
|
@@ -130,6 +130,9 @@ namespace AUTD3
|
|
|
130
130
|
[DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
|
|
131
131
|
internal static extern int autd3_phase_buffer_copy_to(PhaseBufferHandle buffer, [Out] byte[] dst, UIntPtr len);
|
|
132
132
|
|
|
133
|
+
[DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
|
|
134
|
+
internal static extern int autd3_phase_buffer_copy_from(PhaseBufferHandle buffer, ref byte src, UIntPtr len);
|
|
135
|
+
|
|
133
136
|
[DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
|
|
134
137
|
internal static extern void autd3_phase_buffer_free(IntPtr buffer);
|
|
135
138
|
|
|
@@ -154,6 +157,9 @@ namespace AUTD3
|
|
|
154
157
|
[DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
|
|
155
158
|
internal static extern int autd3_intensity_buffer_copy_to(IntensityBufferHandle buffer, [Out] byte[] dst, UIntPtr len);
|
|
156
159
|
|
|
160
|
+
[DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
|
|
161
|
+
internal static extern int autd3_intensity_buffer_copy_from(IntensityBufferHandle buffer, ref byte src, UIntPtr len);
|
|
162
|
+
|
|
157
163
|
[DllImport(Lib, CallingConvention = CallingConvention.Cdecl)]
|
|
158
164
|
internal static extern void autd3_intensity_buffer_free(IntPtr buffer);
|
|
159
165
|
|
|
@@ -397,6 +403,14 @@ namespace AUTD3
|
|
|
397
403
|
|
|
398
404
|
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
|
|
399
405
|
|
|
406
|
+
public void CopyFrom(ReadOnlySpan<byte> src)
|
|
407
|
+
{
|
|
408
|
+
if (NativePattern.autd3_phase_buffer_copy_from(Handle, ref MemoryMarshal.GetReference(src), (UIntPtr)src.Length) != 0)
|
|
409
|
+
{
|
|
410
|
+
throw new Autd3Exception("the source must hold one value for every transducer of the buffer", Autd3ErrorCode.InvalidArgument);
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
|
|
400
414
|
public void Dispose() => _handle.Dispose();
|
|
401
415
|
}
|
|
402
416
|
|
|
@@ -469,6 +483,14 @@ namespace AUTD3
|
|
|
469
483
|
|
|
470
484
|
IEnumerator IEnumerable.GetEnumerator() => GetEnumerator();
|
|
471
485
|
|
|
486
|
+
public void CopyFrom(ReadOnlySpan<byte> src)
|
|
487
|
+
{
|
|
488
|
+
if (NativePattern.autd3_intensity_buffer_copy_from(Handle, ref MemoryMarshal.GetReference(src), (UIntPtr)src.Length) != 0)
|
|
489
|
+
{
|
|
490
|
+
throw new Autd3Exception("the source must hold one value for every transducer of the buffer", Autd3ErrorCode.InvalidArgument);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
|
|
472
494
|
public void Dispose() => _handle.Dispose();
|
|
473
495
|
}
|
|
474
496
|
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/THIRD-PARTY-LICENSES.md
CHANGED
|
@@ -716,9 +716,9 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
|
|
|
716
716
|
|
|
717
717
|
Used by:
|
|
718
718
|
|
|
719
|
-
- autd3-rs-core 0.
|
|
720
|
-
- autd3-rs-pattern 0.
|
|
721
|
-
- autd3-cpu-wire 0.
|
|
719
|
+
- autd3-rs-core 0.14.0 — https://github.com/shinolab/autd3-sdk
|
|
720
|
+
- autd3-rs-pattern 0.14.0 — https://github.com/shinolab/autd3-sdk
|
|
721
|
+
- autd3-cpu-wire 0.14.0 — https://github.com/shinolab/autd3-sdk
|
|
722
722
|
|
|
723
723
|
```
|
|
724
724
|
MIT License
|
|
@@ -749,8 +749,8 @@ SOFTWARE.
|
|
|
749
749
|
|
|
750
750
|
Used by:
|
|
751
751
|
|
|
752
|
-
- autd3-ffi-abi 0.
|
|
753
|
-
- autd3-ffi-pattern 0.
|
|
752
|
+
- autd3-ffi-abi 0.14.0 — https://github.com/shinolab/autd3-sdk
|
|
753
|
+
- autd3-ffi-pattern 0.14.0 — https://github.com/shinolab/autd3-sdk
|
|
754
754
|
|
|
755
755
|
```
|
|
756
756
|
MIT License
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"url": "git+https://github.com/shinolab/autd3-sdk.git",
|
|
6
6
|
"directory": "bindings/unity/com.shinolab.autd3-sdk.pattern"
|
|
7
7
|
},
|
|
8
|
-
"version": "0.
|
|
8
|
+
"version": "0.14.0",
|
|
9
9
|
"displayName": "AUTD3 Pattern",
|
|
10
10
|
"description": "AUTD3 emission patterns: Focus, Plane, Bessel (Unity binding).",
|
|
11
11
|
"unity": "6000.0",
|
|
@@ -15,6 +15,6 @@
|
|
|
15
15
|
"url": "https://github.com/shinolab"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"com.shinolab.autd3-sdk.core": "0.
|
|
18
|
+
"com.shinolab.autd3-sdk.core": "0.14.0"
|
|
19
19
|
}
|
|
20
20
|
}
|