예제 #1
0
 public static DynamicParseState ParseMap(int size, CborNumber tag)
 {
     DynamicParseState state = new DynamicParseState();
     state.type = ParseType.MAP;
     state.currentMap = new Dictionary<CborObject, CborObject>();
     state.currentIndex = 0;
     state.maximumIndex = size;
     state.currentTag = tag;
     return state;
 }
예제 #2
0
 public static DynamicParseState ParseArray(int size, CborNumber tag)
 {
     DynamicParseState state = new DynamicParseState();
     state.type = ParseType.ARRAY;
     state.currentArray = new CborObject[size];
     state.currentIndex = 0;
     state.maximumIndex = size;
     state.currentTag = tag;
     return state;
 }