Skip to content

Commit

Permalink
add VaultPrefix on Vault
Browse files Browse the repository at this point in the history
  • Loading branch information
alec1o committed May 17, 2024
1 parent 3c44160 commit 0183b1f
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions src/src/partials/Vault.cs
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
using System;
using System.Collections.Generic;

namespace Byter
{
public partial class Vault : IVault
{
private static readonly IVaultPrefix Prefix;
private readonly List<byte> _bytes;
public bool IsValid { get; }
public byte[] Data => _bytes.ToArray();
public IVaultAdd Add { get; }
public IVaultGet Get { get; }

static Vault()
{
Prefix = new VaultPrefix();
}

public Vault() : this(null)
{
}
Expand All @@ -19,9 +24,9 @@ public Vault(byte[] data)
{
Get = new VaultGet(this);
Add = new VaultAdd(this);

IsValid = false;

_bytes = new List<byte>();

if (data != null && data.Length > 0)
Expand Down

0 comments on commit 0183b1f

Please sign in to comment.