public unsafe RegGroup CreateGroup(string path) { var newGroup = new RegGroup(); AddItem(path, newGroup); return(newGroup); }
public static unsafe AddItemResult TryCreateGroup(string path, out RegGroup newGroup) { newGroup = new RegGroup(); char *buffer = stackalloc char[path.Length]; if (!GetSegment(path, buffer, out int pos, out RegSegment segment)) { return(AddItemResult.InvalidPath); } return(segment.TryAddItemBuffer(path, pos, buffer, newGroup)); }
public bool ShallowGetGroup(string subGroup, out RegGroup res) => SubGroups.TryGetValue(subGroup, out res);
public unsafe AddItemResult TryCreateGroup(string path, out RegGroup newGroup) { newGroup = new RegGroup(); return(TryAddItem(path, newGroup)); }