MCPcopy Create free account
hub / github.com/TigerVNC/tigervnc / readCompact

Method readCompact

java/com/tigervnc/rfb/TightDecoder.java:622–637  ·  view source on GitHub ↗
(InStream is)

Source from the content-addressed store, hash-verified

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

Callers 1

readRectMethod · 0.95

Calls 1

readU8Method · 0.45

Tested by

no test coverage detected