Returns one bit from 'stream', 0 or 1. * Returns 'SIMPLICITY_ERR_BITSTREAM_EOF' if no bits are available. * * Precondition: NULL != stream */
| 53 | * Precondition: NULL != stream |
| 54 | */ |
| 55 | static inline int32_t read1Bit(bitstream* stream) { |
| 56 | return simplicity_readNBits(1, stream); |
| 57 | } |
| 58 | |
| 59 | /* Decode an encoded number between 1 and 2^31 - 1 inclusive. |
| 60 | * When successful returns the decoded result. |
no test coverage detected