PythonMonkey   v1.1.1 (dev)
Loading...
Searching...
No Matches
BufferType.cc File Reference

Struct for representing ArrayBuffers. More...

#include "include/BufferType.hh"
#include "include/PyBytesProxyHandler.hh"
#include <jsapi.h>
#include <js/ArrayBuffer.h>
#include <js/experimental/TypedData.h>
#include <js/ScalarType.h>
#include <limits.h>
Include dependency graph for BufferType.cc:

Macros

#define NEW_TYPED_ARRAY_WITH_BUFFER(ExternalType, NativeType, Name)
 

Detailed Description

Struct for representing ArrayBuffers.

Author
Tom Tang (xmade.nosp@m.r@di.nosp@m.strib.nosp@m.utiv.nosp@m.e.net.nosp@m.work) and Philippe Laporte (phili.nosp@m.ppe@.nosp@m.distr.nosp@m.ibut.nosp@m.ive.n.nosp@m.etwo.nosp@m.rk)
Date
2023-04-27

Macro Definition Documentation

◆ NEW_TYPED_ARRAY_WITH_BUFFER

#define NEW_TYPED_ARRAY_WITH_BUFFER (   ExternalType,
  NativeType,
  Name 
)
Value:
case JS::Scalar::Name: \
return JS_New ## Name ## ArrayWithBuffer(cx, arrayBuffer, 0 /* byteOffset */, -1 /* use up the ArrayBuffer */);