@@ -5,14 +5,14 @@ import 'dart:io';
55
66/// memset(ptr, value, num) sets the first num bytes of the block of memory
77/// pointed by ptr to the specified value (interpreted as an uint8).
8- final _dart_memset memset =
9- _stdlib.lookupFunction <_c_memset, _dart_memset >('memset' );
8+ final _DartMemset memset =
9+ _stdlib.lookupFunction <_CMemset , _DartMemset >('memset' );
1010
11- final _dart_memcpy ? _memcpyNative = _lookupMemcpyOrNull ();
11+ final _DartMemcpy ? _memcpyNative = _lookupMemcpyOrNull ();
1212
13- _dart_memcpy ? _lookupMemcpyOrNull () {
13+ _DartMemcpy ? _lookupMemcpyOrNull () {
1414 try {
15- return _stdlib.lookupFunction <_c_memcpy, _dart_memcpy >('memcpy' );
15+ return _stdlib.lookupFunction <_CMemcpy , _DartMemcpy >('memcpy' );
1616 } catch (_) {
1717 return null ;
1818 }
@@ -22,7 +22,7 @@ _dart_memcpy? _lookupMemcpyOrNull() {
2222/// and a Dart implementation is used.
2323final isMemcpyNotAvailable = _memcpyNative == null ;
2424
25- final _dart_memcpy _memcpyDart = (dest, src, length) {
25+ final _DartMemcpy _memcpyDart = (dest, src, length) {
2626 dest
2727 .asTypedList (length)
2828 .setAll (0 , src.asTypedList (length).getRange (0 , length));
@@ -35,14 +35,14 @@ final _dart_memcpy _memcpyDart = (dest, src, length) {
3535/// (e.g. for Flutter on iOS 15 simulator), then a Dart implementation is used
3636/// to copy data via asTypedList (which is much slower).
3737/// https://github.com/objectbox/objectbox-dart/issues/313
38- final _dart_memcpy memcpy = _memcpyNative ?? _memcpyDart;
38+ final _DartMemcpy memcpy = _memcpyNative ?? _memcpyDart;
3939
4040// FFI signature
41- typedef _dart_memset = void Function (Pointer <Uint8 >, int , int );
42- typedef _c_memset = Void Function (Pointer <Uint8 >, Int32 , IntPtr );
41+ typedef _DartMemset = void Function (Pointer <Uint8 >, int , int );
42+ typedef _CMemset = Void Function (Pointer <Uint8 >, Int32 , IntPtr );
4343
44- typedef _dart_memcpy = void Function (Pointer <Uint8 >, Pointer <Uint8 >, int );
45- typedef _c_memcpy = Void Function (Pointer <Uint8 >, Pointer <Uint8 >, IntPtr );
44+ typedef _DartMemcpy = void Function (Pointer <Uint8 >, Pointer <Uint8 >, int );
45+ typedef _CMemcpy = Void Function (Pointer <Uint8 >, Pointer <Uint8 >, IntPtr );
4646
4747final DynamicLibrary _stdlib = Platform .isWindows // no .process() on windows
4848 ? DynamicLibrary .open ('vcruntime140.dll' ) // required by objectbox.dll
0 commit comments