BplusDotNet.xBplusTreeBytes.Set C# (CSharp) Метод

Set() публичный Метод

public Set ( string key, object map ) : void
key string
map object
Результат void
        public void Set(string key, object map)
        {
            xBucket bucket;
            string prefix;
            bool found = FindBucketForPrefix(key, out bucket, out prefix, false);
            if (!found)
            {
                bucket = new xBucket(this);
            }
            if (!(map is byte[]))
            {
                throw new BplusTreeBadKeyValue("xBplus only accepts byte array values");
            }
            bucket.Add(key, (byte[]) map);
            this.tree[prefix] = bucket.dump();
        }