Pixel-Composer/scripts/byte_reader/byte_reader.gml

15 lines
534 B
Plaintext
Raw Normal View History

2022-01-13 05:24:03 +01:00
function bin_read_byte(bin) {
return file_bin_read_byte(bin);
}
function bin_read_word(bin) {
return file_bin_read_byte(bin) + file_bin_read_byte(bin);
}
function bin_read_short(bin) {
return file_bin_read_byte(bin) + file_bin_read_byte(bin);
}
function bin_read_dword(bin) {
return file_bin_read_byte(bin) + file_bin_read_byte(bin) + file_bin_read_byte(bin) + file_bin_read_byte(bin);
}
function bin_read_long(bin) {
return file_bin_read_byte(bin) + file_bin_read_byte(bin) + file_bin_read_byte(bin) + file_bin_read_byte(bin);
}