35 ULONG NumberOfBuckets;
38 TRACE(
"(%d, %d)\n", NumberOfPointers, XlatSide);
40 if (!NumberOfPointers) NumberOfPointers = 512;
41 NumberOfBuckets = ((NumberOfPointers + 3) & ~3) - 1;
45 sizeof(
void *) * NumberOfPointers);
48 sizeof(
unsigned char) * NumberOfPointers);
51 TRACE(
"NumberOfBuckets = %d\n", NumberOfBuckets);
68 TRACE(
"(%p)\n", pXlatTables);
79 XlatTableEntry = Next;
102 sizeof(
unsigned char) * pXlatTables->
RefIdToPointer.NumberOfEntries);
117 TRACE(
"(%p, %p, %d, %p)\n", pXlatTables, pPointer,
QueryType, pRefId);
126 for (
i = 0;
i <
sizeof(pPointer);
i++)
127 Hash = (
Hash * 3) ^ ((
unsigned char *)&pPointer)[
i];
130 for (; XlatTableEntry; XlatTableEntry = XlatTableEntry->
Next)
131 if (pPointer == XlatTableEntry->
Pointer)
133 *pRefId = XlatTableEntry->
RefId;
142 XlatTableEntry->
Pointer = pPointer;
162 TRACE(
"(%p, 0x%x, %d, %p)\n", pXlatTables, RefId,
QueryType, ppPointer);
189 ULONG RefId,
void *pPointer)
195 TRACE(
"(%p, 0x%x, %p)\n", pXlatTables, RefId, pPointer);
198 for (
i = 0;
i <
sizeof(pPointer);
i++)
199 Hash = (
Hash * 3) ^ ((
unsigned char *)&pPointer)[
i];
203 XlatTableEntry->
Pointer = pPointer;
204 XlatTableEntry->
RefId = RefId;
205 XlatTableEntry->
State = 0;
221 TRACE(
"(%p, %p)\n", pXlatTables, Pointer);
227 for (
i = 0;
i <
sizeof(Pointer);
i++)
228 Hash = (
Hash * 3) ^ ((
unsigned char *)&Pointer)[
i];
231 for (; XlatTableEntry; XlatTableEntry = XlatTableEntry->
Next)
232 if (Pointer == XlatTableEntry->
Pointer)
234 if (XlatTableEntry->
State & 0x20)
236 XlatTableEntry->
State |= 0x20;
237 RefId = XlatTableEntry->
RefId;
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
#define HeapFree(x, y, z)
static int Hash(const char *)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
int WINAPI NdrFullPointerFree(PFULL_PTR_XLAT_TABLES pXlatTables, void *Pointer)
int WINAPI NdrFullPointerQueryRefId(PFULL_PTR_XLAT_TABLES pXlatTables, ULONG RefId, unsigned char QueryType, void **ppPointer)
void WINAPI NdrFullPointerXlatFree(PFULL_PTR_XLAT_TABLES pXlatTables)
int WINAPI NdrFullPointerQueryPointer(PFULL_PTR_XLAT_TABLES pXlatTables, void *pPointer, unsigned char QueryType, ULONG *pRefId)
PFULL_PTR_XLAT_TABLES WINAPI NdrFullPointerXlatInit(ULONG NumberOfPointers, XLAT_SIDE XlatSide)
static void expand_pointer_table_if_necessary(PFULL_PTR_XLAT_TABLES pXlatTables, ULONG RefId)
void WINAPI NdrFullPointerInsertRefId(PFULL_PTR_XLAT_TABLES pXlatTables, ULONG RefId, void *pPointer)
_Must_inspect_result_ _In_ KTMOBJECT_TYPE QueryType
struct _FULL_PTR_TO_REFID_ELEMENT * Next
struct _FULL_PTR_XLAT_TABLES::@3215 RefIdToPointer
struct _FULL_PTR_XLAT_TABLES::@3216 PointerToRefId