support for scalar mutators

This commit is contained in:
Maor Itzkovitch
2015-08-01 12:38:47 +03:00
parent 6e192fa408
commit 81c2b185ef
9 changed files with 81 additions and 2 deletions

View File

@@ -12,7 +12,9 @@ public sealed class Stat : Table {
public string Id { get { int o = __offset(4); return o != 0 ? __string(o + bb_pos) : null; } }
public long Val { get { int o = __offset(6); return o != 0 ? bb.GetLong(o + bb_pos) : (long)0; } }
public bool MutateVal(long val) { int o = __offset(6); if (o != 0) { bb.PutLong(o + bb_pos); return true } else { return false } }
public ushort Count { get { int o = __offset(8); return o != 0 ? bb.GetUshort(o + bb_pos) : (ushort)0; } }
public bool MutateCount(ushort count) { int o = __offset(8); if (o != 0) { bb.PutUshort(o + bb_pos); return true } else { return false } }
public static int CreateStat(FlatBufferBuilder builder,
int id = 0,