mirror of
https://github.com/Ttanasart-pt/Pixel-Composer.git
synced 2024-12-26 06:56:45 +01:00
15 lines
534 B
Text
15 lines
534 B
Text
|
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);
|
||
|
}
|