Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ClusterM/hakchi2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-10-05 23:42:19 +0300
committerAlexey 'Cluster' Avdyukhin <clusterrr@clusterrr.com>2017-10-05 23:42:19 +0300
commitad222ad525a69ff39a0c7a6120eb45e6bae3ce70 (patch)
treecf91cbf0cc629809bca3ab52f1bae0ea3fd5039d /TarStream.cs
parent100852f221b8f1b83c978d29c0cd56f54d7ffab8 (diff)
Finally SNES patcher
Diffstat (limited to 'TarStream.cs')
-rw-r--r--TarStream.cs6
1 files changed, 3 insertions, 3 deletions
diff --git a/TarStream.cs b/TarStream.cs
index 4ffcf3ea..2019a8e3 100644
--- a/TarStream.cs
+++ b/TarStream.cs
@@ -63,7 +63,7 @@ namespace com.clusterrr.util
public void CalcChecksum()
{
Checksum = new byte[] { 32, 32, 32, 32, 32, 32, 32, 32 };
- var bytes = getBytes();
+ var bytes = GetBytes();
uint summ = 0;
foreach (var b in bytes)
summ += b;
@@ -72,7 +72,7 @@ namespace com.clusterrr.util
Checksum[7] = 32;
}
- public byte[] getBytes()
+ public byte[] GetBytes()
{
int size = Marshal.SizeOf(this);
byte[] arr = new byte[size];
@@ -256,7 +256,7 @@ namespace com.clusterrr.util
header.UstarMagic = "ustar ";
//header.UstarVersion = new char[] {'0', '0'};
header.CalcChecksum();
- currentHeader = header.getBytes();
+ currentHeader = header.GetBytes();
}
if (currentEntryPosition < 512) // Header