/* Call this instead of parser_init() if the payload area consists of just * a sequence of bytes, rather than a struct spar_controlvm_parameters_header * structures. Afterwards, you can call parser_simpleString_get() or * parser_byteStream_get() to obtain the data. */ PARSER_CONTEXT * parser_init_byteStream(u64 addr, u32 bytes, BOOL isLocal, BOOL *tryAgain) { return parser_init_guts(addr, bytes, isLocal, FALSE, tryAgain); }
/* Call this instead of parser_init() if the payload area consists of just * a sequence of bytes, rather than a struct spar_controlvm_parameters_header * structures. Afterwards, you can call parser_simpleString_get() or * parser_byteStream_get() to obtain the data. */ struct parser_context * parser_init_byte_stream(u64 addr, u32 bytes, BOOL local, BOOL *retry) { return parser_init_guts(addr, bytes, local, FALSE, retry); }
PARSER_CONTEXT * parser_init(u64 addr, u32 bytes, BOOL isLocal, BOOL *tryAgain) { return parser_init_guts(addr, bytes, isLocal, TRUE, tryAgain); }
struct parser_context * parser_init(u64 addr, u32 bytes, BOOL local, BOOL *retry) { return parser_init_guts(addr, bytes, local, TRUE, retry); }