Beispiel #1
0
 internal static extern JsErrorCode JsGetTypedArrayStorage(JsValue typedArray, out byte[] buffer,
                                                           out uint bufferLength, out JsTypedArrayType arrayType, out int elementSize);
Beispiel #2
0
 internal static extern JsErrorCode JsCreateTypedArray(JsTypedArrayType arrayType, JsValue arrayBuffer,
                                                       uint byteOffset, uint elementLength, out JsValue result);
Beispiel #3
0
 internal static extern JsErrorCode JsGetTypedArrayInfo(JsValue typedArray, out JsTypedArrayType arrayType,
                                                        out JsValue arrayBuffer, out uint byteOffset, out uint byteLength);
		internal static extern JsErrorCode JsGetTypedArrayStorage(JsValue typedArray, out byte[] buffer,
			out uint bufferLength, out JsTypedArrayType arrayType, out int elementSize);
Beispiel #5
0
 internal static extern JsErrorCode JsSetIndexedPropertiesToExternalData(JsValue obj, IntPtr data,
                                                                         JsTypedArrayType arrayType, uint elementLength);
		internal static extern JsErrorCode JsCreateTypedArray(JsTypedArrayType arrayType, JsValue arrayBuffer,
			uint byteOffset, uint elementLength, out JsValue result);
		internal static extern JsErrorCode JsGetTypedArrayInfo(JsValue typedArray, out JsTypedArrayType arrayType,
			out JsValue arrayBuffer, out uint byteOffset, out uint byteLength);
Beispiel #8
0
 public static extern JsErrorCode JsGetTypedArrayStorage(JsValueRef typedArray, out IntPtr buffer, out uint bufferLength, out JsTypedArrayType arrayType, out int elementSize);
		internal static extern JsErrorCode JsSetIndexedPropertiesToExternalData(JsValue obj, IntPtr data,
			JsTypedArrayType arrayType, uint elementLength);
Beispiel #10
0
 public static extern JsErrorCode JsGetIndexedPropertiesExternalData(JsValueRef @object, out IntPtr data, out JsTypedArrayType arrayType, out uint elementLength);
Beispiel #11
0
 public static extern JsErrorCode JsCreateTypedArray(JsTypedArrayType arrayType, JsValueRef byteArray, uint byteOffset, uint elementLength, out JsValueRef result);
Beispiel #12
0
 public static extern JsValue *JsObjectMakeTypedArrayWithArrayBufferAndOffset([NativeTypeName("JSContextRef")] JsContext *ctx, JsTypedArrayType arrayType, [NativeTypeName("JSObjectRef")] JsValue *buffer,
                                                                              [NativeTypeName("size_t")] UIntPtr byteOffset, [NativeTypeName("size_t")] UIntPtr length, [NativeTypeName("JSValueRef *")] JsValue **exception);
Beispiel #13
0
 public static extern JsValue *JsObjectMakeTypedArrayWithArrayBuffer([NativeTypeName("JSContextRef")] JsContext *ctx, JsTypedArrayType arrayType, [NativeTypeName("JSObjectRef")] JsValue *buffer,
                                                                     [NativeTypeName("JSValueRef *")] JsValue **exception);
Beispiel #14
0
 public static JsValue *JsObjectMakeTypedArrayWithBytesNoCopy(JsContext *ctx, JsTypedArrayType arrayType, void *bytes, UIntPtr byteLength, FnPtr <TypedArrayBytesDeallocatorCallback> bytesDeallocator, void *deallocatorContext,
                                                              JsValue **exception)
 => JsObjectMakeTypedArrayWithBytesNoCopy(ctx, arrayType, bytes, byteLength, (IntPtr)bytesDeallocator, deallocatorContext, exception);
Beispiel #15
0
 private static extern JsValue *JsObjectMakeTypedArrayWithBytesNoCopy([NativeTypeName("JSContextRef")] JsContext *ctx, JsTypedArrayType arrayType, [NativeTypeName("void *")] void *bytes, [NativeTypeName("size_t")] UIntPtr byteLength,
                                                                      [NativeTypeName("JSTypedArrayBytesDeallocator")]
                                                                      IntPtr bytesDeallocator, [NativeTypeName("void *")] void *deallocatorContext, [NativeTypeName("JSValueRef *")] JsValue **exception);
Beispiel #16
0
 public static extern JsValue *JsObjectMakeTypedArray([NativeTypeName("JSContextRef")] JsContext *ctx, JsTypedArrayType arrayType, [NativeTypeName("size_t")] UIntPtr length, [NativeTypeName("JSValueRef *")] JsValue **exception);