Revert "[Kernel] *FormatData: make peek() match get() endian, fix skip() not advancing pointer"

This reverts commit 086c28e55d.
This commit is contained in:
illusion 2020-02-25 11:49:46 +07:00
parent 8556177347
commit 2e80fc00fe
1 changed files with 5 additions and 5 deletions

View File

@ -731,7 +731,7 @@ class StringFormatData : public FormatData {
void skip(int32_t count) {
while (count-- > 0) {
if (!get()) {
if (!*input_) {
break;
}
}
@ -764,11 +764,11 @@ class WideStringFormatData : public FormatData {
return xe::byte_swap(result);
}
uint16_t peek(int32_t offset) { return xe::byte_swap(input_[offset]); }
uint16_t peek(int32_t offset) { return input_[offset]; }
void skip(int32_t count) {
while (count-- > 0) {
if (!get()) {
if (!*input_) {
break;
}
}
@ -798,11 +798,11 @@ class WideCountFormatData : public FormatData {
return xe::byte_swap(result);
}
uint16_t peek(int32_t offset) { return xe::byte_swap(input_[offset]); }
uint16_t peek(int32_t offset) { return input_[offset]; }
void skip(int32_t count) {
while (count-- > 0) {
if (!get()) {
if (!*input_) {
break;
}
}