コード例 #1
0
ファイル: AbstractStore.cs プロジェクト: erpframework/cloudb
 public StoreMutableArea(AbstractStore store, long id, long pointer,
     long fixed_size)
     : base(store, id, pointer, fixed_size)
 {
 }
コード例 #2
0
ファイル: AbstractStore.cs プロジェクト: erpframework/cloudb
 public StoreMutableArea(AbstractStore store, long id, long pointer)
     : base(store, id, pointer)
 {
 }
コード例 #3
0
ファイル: AbstractStore.cs プロジェクト: erpframework/cloudb
 public StoreAreaWriter(AbstractStore store, long pointer, long fixed_size)
     : base(store, pointer, pointer + 8, fixed_size)
 {
 }
コード例 #4
0
ファイル: AbstractStore.cs プロジェクト: erpframework/cloudb
 public StoreAreaInputStream(AbstractStore store, long pointer, long max_size)
 {
     this.store = store;
     this.pointer = start_pointer = pointer;
     end_pointer = pointer + max_size;
     // mark_point = -1;
 }
コード例 #5
0
ファイル: AbstractStore.cs プロジェクト: erpframework/cloudb
            public StoreArea(AbstractStore store, long id, long pointer, long fixed_size)
            {
                this.store = store;
                // Check the pointer is valid
                if (pointer != FixedAreaOffset) {
                    store.CheckPointer(pointer);
                }

                this.id = id;
                this.start_pointer = pointer;
                this.m_position = start_pointer;
                this.end_pointer = start_pointer + fixed_size;
            }
コード例 #6
0
ファイル: AbstractStore.cs プロジェクト: erpframework/cloudb
            public StoreArea(AbstractStore store, long id, long pointer)
            {
                this.store = store;
                // Check the pointer is within the bounds of the data area of the file
                store.CheckPointer(pointer);

                store.ReadByteArrayFrom(pointer, buffer, 0, 8);
                long v = ByteBuffer.ReadInt8(buffer, 0);
                if ((v & DeletedFlag /* 0x08000000000000000L */) != 0) {
                    throw new IOException("Store being constructed on deleted area.");
                }

                long max_size = v - 16;
                this.id = id;
                this.start_pointer = pointer + 8;
                this.m_position = start_pointer;
                this.end_pointer = start_pointer + max_size;
            }