public LCMDataInputStream(byte[] buf) : base(new System.IO.MemoryStream()) { this.buf = buf; this.endpos = buf.Length + 1; }