Lines Matching refs:raw_buffer
56 && parser->raw_buffer.last - parser->raw_buffer.pointer < 3) { in yaml_parser_determine_encoding()
64 if (parser->raw_buffer.last - parser->raw_buffer.pointer >= 2 in yaml_parser_determine_encoding()
65 && !memcmp(parser->raw_buffer.pointer, BOM_UTF16LE, 2)) { in yaml_parser_determine_encoding()
67 parser->raw_buffer.pointer += 2; in yaml_parser_determine_encoding()
70 else if (parser->raw_buffer.last - parser->raw_buffer.pointer >= 2 in yaml_parser_determine_encoding()
71 && !memcmp(parser->raw_buffer.pointer, BOM_UTF16BE, 2)) { in yaml_parser_determine_encoding()
73 parser->raw_buffer.pointer += 2; in yaml_parser_determine_encoding()
76 else if (parser->raw_buffer.last - parser->raw_buffer.pointer >= 3 in yaml_parser_determine_encoding()
77 && !memcmp(parser->raw_buffer.pointer, BOM_UTF8, 3)) { in yaml_parser_determine_encoding()
79 parser->raw_buffer.pointer += 3; in yaml_parser_determine_encoding()
100 if (parser->raw_buffer.start == parser->raw_buffer.pointer in yaml_parser_update_raw_buffer()
101 && parser->raw_buffer.last == parser->raw_buffer.end) in yaml_parser_update_raw_buffer()
110 if (parser->raw_buffer.start < parser->raw_buffer.pointer in yaml_parser_update_raw_buffer()
111 && parser->raw_buffer.pointer < parser->raw_buffer.last) { in yaml_parser_update_raw_buffer()
112 memmove(parser->raw_buffer.start, parser->raw_buffer.pointer, in yaml_parser_update_raw_buffer()
113 parser->raw_buffer.last - parser->raw_buffer.pointer); in yaml_parser_update_raw_buffer()
115 parser->raw_buffer.last -= in yaml_parser_update_raw_buffer()
116 parser->raw_buffer.pointer - parser->raw_buffer.start; in yaml_parser_update_raw_buffer()
117 parser->raw_buffer.pointer = parser->raw_buffer.start; in yaml_parser_update_raw_buffer()
121 if (!parser->read_handler(parser->read_handler_data, parser->raw_buffer.last, in yaml_parser_update_raw_buffer()
122 parser->raw_buffer.end - parser->raw_buffer.last, &size_read)) { in yaml_parser_update_raw_buffer()
126 parser->raw_buffer.last += size_read; in yaml_parser_update_raw_buffer()
150 if (parser->eof && parser->raw_buffer.pointer == parser->raw_buffer.last) in yaml_parser_update_buffer()
185 if (!first || parser->raw_buffer.pointer == parser->raw_buffer.last) { in yaml_parser_update_buffer()
192 while (parser->raw_buffer.pointer != parser->raw_buffer.last) in yaml_parser_update_buffer()
200 size_t raw_unread = parser->raw_buffer.last - parser->raw_buffer.pointer; in yaml_parser_update_buffer()
230 octet = parser->raw_buffer.pointer[0]; in yaml_parser_update_buffer()
266 octet = parser->raw_buffer.pointer[k]; in yaml_parser_update_buffer()
345 value = parser->raw_buffer.pointer[low] in yaml_parser_update_buffer()
346 + (parser->raw_buffer.pointer[high] << 8); in yaml_parser_update_buffer()
375 value2 = parser->raw_buffer.pointer[low+2] in yaml_parser_update_buffer()
376 + (parser->raw_buffer.pointer[high+2] << 8); in yaml_parser_update_buffer()
422 parser->raw_buffer.pointer += width; in yaml_parser_update_buffer()