| 86 | |
| 87 | |
| 88 | static lu_byte loadByte (LoadState *S) { |
| 89 | int b = zgetc(S->Z); |
| 90 | if (b == EOZ) |
| 91 | error(S, "truncated chunk"); |
| 92 | S->offset++; |
| 93 | return cast_byte(b); |
| 94 | } |
| 95 | |
| 96 | |
| 97 | static lua_Unsigned loadVarint (LoadState *S, lua_Unsigned limit) { |
no test coverage detected