(self)
| 111 | return x |
| 112 | |
| 113 | def r_long(self) -> int: |
| 114 | buf = self.r_string(4) |
| 115 | x = buf[0] |
| 116 | x |= buf[1] << 8 |
| 117 | x |= buf[2] << 16 |
| 118 | x |= buf[3] << 24 |
| 119 | x |= -(x & (1<<31)) # Sign-extend |
| 120 | return x |
| 121 | |
| 122 | def r_long64(self) -> int: |
| 123 | buf = self.r_string(8) |