public byte[] ReadToEnd() { var bytes = new List<byte>(); while (!IsEndOfFile) { bytes.Add((byte)stream.ReadByte()); } return bytes.ToArray(); }
private void ReadSignature(GitObjectStream content) { content.Position = content.Length - 20; Sha1Signature = content.ReadToEnd().ToHexString(); content.Rewind(); }