Lines Matching defs:writer

362                _PyUnicodeWriter *writer, int level);
457 _hamt_dump_ident(_PyUnicodeWriter *writer, int level)
459 /* Write `' ' * level` to the `writer` */
480 ret = _PyUnicodeWriter_WriteStr(writer, res);
490 _hamt_dump_format(_PyUnicodeWriter *writer, const char *format, ...)
511 ret = _PyUnicodeWriter_WriteStr(writer, msg);
1184 _PyUnicodeWriter *writer, int level)
1192 if (_hamt_dump_ident(writer, level + 1)) {
1196 if (_hamt_dump_format(writer, "BitmapNode(size=%zd count=%zd ",
1211 if (_hamt_dump_format(writer, "bitmap=%S id=%p):\n", tmp2, node)) {
1221 if (_hamt_dump_ident(writer, level + 2)) {
1226 if (_hamt_dump_format(writer, "NULL:\n")) {
1231 writer, level + 2))
1237 if (_hamt_dump_format(writer, "%R: %R", key_or_null,
1244 if (_hamt_dump_format(writer, "\n")) {
1592 _PyUnicodeWriter *writer, int level)
1598 if (_hamt_dump_ident(writer, level + 1)) {
1602 if (_hamt_dump_format(writer, "CollisionNode(size=%zd id=%p):\n",
1612 if (_hamt_dump_ident(writer, level + 2)) {
1616 if (_hamt_dump_format(writer, "%R: %R\n", key, val)) {
1974 _PyUnicodeWriter *writer, int level)
1980 if (_hamt_dump_ident(writer, level + 1)) {
1984 if (_hamt_dump_format(writer, "ArrayNode(id=%p):\n", node)) {
1993 if (_hamt_dump_ident(writer, level + 2)) {
1997 if (_hamt_dump_format(writer, "%zd::\n", i)) {
2001 if (hamt_node_dump(node->a_array[i], writer, level + 1)) {
2005 if (_hamt_dump_format(writer, "\n")) {
2121 _PyUnicodeWriter *writer, int level)
2131 (PyHamtNode_Bitmap *)node, writer, level);
2135 (PyHamtNode_Array *)node, writer, level);
2140 (PyHamtNode_Collision *)node, writer, level);
2512 _PyUnicodeWriter writer;
2514 _PyUnicodeWriter_Init(&writer);
2516 if (_hamt_dump_format(&writer, "HAMT(len=%zd):\n", self->h_count)) {
2520 if (hamt_node_dump(self->h_root, &writer, 0)) {
2524 return _PyUnicodeWriter_Finish(&writer);
2527 _PyUnicodeWriter_Dealloc(&writer);