Change character literals to '\xFF'
This commit is contained in:
@@ -242,7 +242,7 @@ static void sbwrite_uint64(std::ostream *s, uint64_t v) {
|
|||||||
// This encoding can be read by StreamBuffer::read_string.
|
// This encoding can be read by StreamBuffer::read_string.
|
||||||
//
|
//
|
||||||
static void sbwrite_string(std::ostream *s, std::string_view sv) {
|
static void sbwrite_string(std::ostream *s, std::string_view sv) {
|
||||||
s->put(0xFF);
|
s->put('\xFF');
|
||||||
sbwrite_uint64(s, sv.size());
|
sbwrite_uint64(s, sv.size());
|
||||||
s->write(sv.data(), sv.size());
|
s->write(sv.data(), sv.size());
|
||||||
}
|
}
|
||||||
@@ -250,7 +250,7 @@ static void sbwrite_string(std::ostream *s, std::string_view sv) {
|
|||||||
// This encoding can be read by StreamBuffer::read_string.
|
// This encoding can be read by StreamBuffer::read_string.
|
||||||
//
|
//
|
||||||
static bool sbwrite_file(std::ostream *s, const std::filesystem::path &fn) {
|
static bool sbwrite_file(std::ostream *s, const std::filesystem::path &fn) {
|
||||||
s->put(0xFF);
|
s->put('\xFF');
|
||||||
uint64_t pos1 = s->tellp();
|
uint64_t pos1 = s->tellp();
|
||||||
sbwrite_uint64(s, 0);
|
sbwrite_uint64(s, 0);
|
||||||
uint64_t pos2 = s->tellp();
|
uint64_t pos2 = s->tellp();
|
||||||
|
|||||||
Reference in New Issue
Block a user