public virtual int r() { Long n = read(); if (n == null) return -1; return n.intValue(); }
public override int decode(InStream @in) { int c1 = @in.r(); int c2 = @in.r(); if ((c1 | c2) < 0) { return(-1); } return(c1 | (c2 << 8)); }