Skip to content

Commit

Permalink
rename project
Browse files Browse the repository at this point in the history
  • Loading branch information
ak88 committed Oct 9, 2023
1 parent f6a2d8a commit ca6986e
Show file tree
Hide file tree
Showing 10 changed files with 5 additions and 76 deletions.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// SPDX-FileCopyrightText: 2023 Demerzel Solutions Limited
// SPDX-FileCopyrightText: 2023 Demerzel Solutions Limited
// SPDX-License-Identifier: LGPL-3.0-only

namespace Nethermind.Era1;
Expand All @@ -21,15 +21,3 @@ public StreamArray ValueAsStream()

}

//struct Era {

// public ReadAtSeekCloser f; // backing era1 file

// s* e2store.Reader // e2store reader over f

// m metadata // start, count, length info

// mu* sync.Mutex // lock for buf
// buf [8] byte // buffer reading entry offsets
//}

Original file line number Diff line number Diff line change
Expand Up @@ -13,34 +13,19 @@ namespace Nethermind.Era1;
internal class StreamArray : Stream
{
private readonly byte[] _bytes;
//private readonly long _from;
//private readonly long _to;
private long _position;

public StreamArray(byte[] bytes/*, long from, long to*/)
public StreamArray(byte[] bytes)
{
//if (from < 0)
// throw new ArgumentOutOfRangeException(nameof(from), "Cannot be less than zero.");
//if (to < 0)
// throw new ArgumentOutOfRangeException(nameof(to), "Cannot be less than zero.");
//if (from >= to)
// throw new ArgumentOutOfRangeException(nameof(to), "Must be bigger than than 'from'.");
//if (from >= bytes.Length)
// throw new ArgumentOutOfRangeException(nameof(from), "Cannot be bigger than the length of the array.");
//if (to > bytes.Length)
// throw new ArgumentOutOfRangeException(nameof(to), "Cannot be bigger than the length of the array.");

_bytes = bytes;
//_from = from;
//_to = to;
_bytes = bytes ?? throw new ArgumentNullException(nameof(bytes));
}
public override bool CanRead => true;

public override bool CanSeek => true;

public override bool CanWrite => false;

public override long Length => _bytes.Length;//_to - _from;
public override long Length => _bytes.Length;

public override long Position { get => _position; set => _position = value; }

Expand Down
44 changes: 0 additions & 44 deletions src/Nethermind/Nethermind.History.Era1/Builder.cs

This file was deleted.

2 changes: 1 addition & 1 deletion src/Nethermind/Nethermind.sln
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nethermind.Serialization.Ss
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nethermind.Network.Contract", "Nethermind.Network.Contract\Nethermind.Network.Contract.csproj", "{AD151E35-4BBC-4A83-8F57-CC8665F6E007}"
EndProject
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nethermind.Era1", "Nethermind.History.Era1\Nethermind.Era1.csproj", "{AFD974A9-C907-4A9F-859D-5698A67B58A8}"
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Nethermind.Era1", "Nethermind.Era1\Nethermind.Era1.csproj", "{AFD974A9-C907-4A9F-859D-5698A67B58A8}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Nethermind.Era1.Test", "Nethermind.Era.Test\Nethermind.Era1.Test.csproj", "{08B2B720-5DD4-4F69-8DD1-DF62E2B405FC}"
EndProject
Expand Down

0 comments on commit ca6986e

Please sign in to comment.