(InStream is)
| 620 | } |
| 621 | |
| 622 | public final int readCompact(InStream is) { |
| 623 | byte b; |
| 624 | int result; |
| 625 | |
| 626 | b = (byte)is.readU8(); |
| 627 | result = (int)b & 0x7F; |
| 628 | if ((b & 0x80) != 0) { |
| 629 | b = (byte)is.readU8(); |
| 630 | result |= ((int)b & 0x7F) << 7; |
| 631 | if ((b & 0x80) != 0) { |
| 632 | b = (byte)is.readU8(); |
| 633 | result |= ((int)b & 0xFF) << 14; |
| 634 | } |
| 635 | } |
| 636 | return result; |
| 637 | } |
| 638 | |
| 639 | private ZlibInStream[] zis; |
| 640 |