PythonMonkey   v1.0.0 (dev)
Loading...
Searching...
No Matches
PyBytesProxyHandler.hh
Go to the documentation of this file.
1
11#ifndef PythonMonkey_PyBytesProxy_
12#define PythonMonkey_PyBytesProxy_
13
14
16
17
23public:
25 static const char family;
26
39 bool set(JSContext *cx, JS::HandleObject proxy, JS::HandleId id,
40 JS::HandleValue v, JS::HandleValue receiver,
41 JS::ObjectOpResult &result) const override;
42
44 JSContext *cx, JS::HandleObject proxy, JS::HandleId id,
45 JS::MutableHandle<mozilla::Maybe<JS::PropertyDescriptor>> desc
46 ) const override;
47
54 void finalize(JS::GCContext *gcx, JSObject *proxy) const override;
55};
56
57#endif
Struct for creating JS proxy objects for all objects.
This struct is the ProxyHandler for JS Proxy Iterable pythonmonkey creates to handle coercion from py...
Definition PyBytesProxyHandler.hh:22
static const char family
Definition PyBytesProxyHandler.hh:25
bool set(JSContext *cx, JS::HandleObject proxy, JS::HandleId id, JS::HandleValue v, JS::HandleValue receiver, JS::ObjectOpResult &result) const override
[[Set]]
Definition PyBytesProxyHandler.cc:256
bool getOwnPropertyDescriptor(JSContext *cx, JS::HandleObject proxy, JS::HandleId id, JS::MutableHandle< mozilla::Maybe< JS::PropertyDescriptor > > desc) const override
Definition PyBytesProxyHandler.cc:271
void finalize(JS::GCContext *gcx, JSObject *proxy) const override
Handles python object reference count when JS Proxy object is finalized.
Definition PyBytesProxyHandler.cc:422
PyBytesProxyHandler()
Definition PyBytesProxyHandler.hh:24
This struct is the ProxyHandler for JS Proxy Objects pythonmonkey creates to handle coercion from pyt...
Definition PyObjectProxyHandler.hh:24