PythonMonkey   v1.0.0 (dev)
Loading...
Searching...
No Matches
PythonExternalString Struct Reference

#include <jsTypeFactory.hh>

Inheritance diagram for PythonExternalString:
[legend]
Collaboration diagram for PythonExternalString:
[legend]

Public Member Functions

void finalize (char16_t *chars) const override
 decrefs the underlying PyObject string when the JSString is finalized
 
void finalize (JS::Latin1Char *chars) const override
 
size_t sizeOfBuffer (const char16_t *chars, mozilla::MallocSizeOf mallocSizeOf) const override
 
size_t sizeOfBuffer (const JS::Latin1Char *chars, mozilla::MallocSizeOf mallocSizeOf) const override
 

Static Public Member Functions

static PyObject * getPyString (const char16_t *chars)
 Get the PyObject using the given char buffer.
 
static PyObject * getPyString (const JS::Latin1Char *chars)
 

Member Function Documentation

◆ finalize() [1/2]

void PythonExternalString::finalize ( char16_t *  chars) const
override

decrefs the underlying PyObject string when the JSString is finalized

Parameters
chars- The char buffer of the string

◆ finalize() [2/2]

void PythonExternalString::finalize ( JS::Latin1Char *  chars) const
override

◆ getPyString() [1/2]

PyObject * PythonExternalString::getPyString ( const char16_t *  chars)
static

Get the PyObject using the given char buffer.

Parameters
chars- the char buffer of the PyObject
Returns
PyObject* - the PyObject string

◆ getPyString() [2/2]

PyObject * PythonExternalString::getPyString ( const JS::Latin1Char *  chars)
static

◆ sizeOfBuffer() [1/2]

size_t PythonExternalString::sizeOfBuffer ( const char16_t *  chars,
mozilla::MallocSizeOf  mallocSizeOf 
) const
override

◆ sizeOfBuffer() [2/2]

size_t PythonExternalString::sizeOfBuffer ( const JS::Latin1Char *  chars,
mozilla::MallocSizeOf  mallocSizeOf 
) const
override

The documentation for this struct was generated from the following files: