예제 #1
0
        //-------------------------------------------//

        /// <summary>
        /// New blob stream for a new record.
        /// </summary>
        internal BlobStream(string id, Blobs blobs)
        {
            Id     = id;
            _blobs = blobs;

            _lock       = new Lock();
            _initialize = true;
        }
예제 #2
0
        /// <summary>
        /// New blob stream from an existing record.
        /// </summary>
        internal BlobStream(string id, Blobs blobs, long length, int sectionCount, int sectionSize)
        {
            Id     = id;
            _blobs = blobs;

            _length       = length;
            _sectionCount = sectionCount;
            _sectionSize  = sectionSize;

            _initialize = true;
        }