Git.Core.ObjectStore.RetrieveContent C# (CSharp) Method

RetrieveContent() private method

private RetrieveContent ( SHA1 id ) : byte[]
id SHA1
return byte[]
        private byte[] RetrieveContent(SHA1 id)
        {
            FileStream fs = new FileStream (GetObjectFullPath (id), FileMode.Open, FileAccess.Read);
            BinaryReader br = new BinaryReader (fs);

            byte[] bytes = new byte[(int) fs.Length];
            fs.Read (bytes, 0, (int) fs.Length);
            bytes = Decompress (bytes);

            br.Close ();
            fs.Close ();

            return bytes;
        }