forked from Snoooopy/MetroUnlocker
First release build.
This commit is contained in:
29
MetroUnlocker/LibTSForge/PhysicalStore/BasicBlock.cs
Normal file
29
MetroUnlocker/LibTSForge/PhysicalStore/BasicBlock.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace MetroUnlocker.LibTSForge.PhysicalStore
|
||||
{
|
||||
public class BasicBlock
|
||||
{
|
||||
public byte[] Key;
|
||||
public string KeyAsString
|
||||
{
|
||||
get { return Utils.DecodeString(Key); }
|
||||
set { Key = Utils.EncodeString(value); }
|
||||
}
|
||||
|
||||
public byte[] Value;
|
||||
public string ValueAsString
|
||||
{
|
||||
get { return Utils.DecodeString(Value); }
|
||||
set { Value = Utils.EncodeString(value); }
|
||||
}
|
||||
public uint ValueAsInteger
|
||||
{
|
||||
get { return BitConverter.ToUInt32(Value, 0); }
|
||||
set { Value = BitConverter.GetBytes(value); }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user