Add Bofa.Deserialize
This commit is contained in:
parent
c8629face9
commit
dbc38e0195
1 changed files with 10 additions and 0 deletions
10
src/Bofa.bf
10
src/Bofa.bf
|
@ -14,6 +14,16 @@ class Bofa
|
||||||
public StringView Typename;
|
public StringView Typename;
|
||||||
public BofaValue Value;
|
public BofaValue Value;
|
||||||
|
|
||||||
|
public static bool Deserialize<T>(ref T pType, Dictionary<StringView, Bofa> pDictionary) where T : Bofa.Serialization.IBofaParseable
|
||||||
|
{
|
||||||
|
Bofa b = scope .();
|
||||||
|
b.Type = .Object;
|
||||||
|
b.Value.Object = pDictionary;
|
||||||
|
|
||||||
|
defer {b.Type = .Integer;}
|
||||||
|
return pType.Deserialize(b);
|
||||||
|
}
|
||||||
|
|
||||||
public override void ToString(String strBuffer)
|
public override void ToString(String strBuffer)
|
||||||
{
|
{
|
||||||
int64 depth = 0;
|
int64 depth = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue