/// <summary> /// 最上位のテーブルを <paramref name="ref"/> から作成 /// </summary> public RealmTable(ReferenceAccessor @ref) { this.Ref = @ref; var tableArray = new RealmArray(@ref); this.Spec = new TableSpec(@ref.NewRef((ulong)tableArray[0])); this.Columns = new RealmArray(@ref.NewRef((ulong)tableArray[1])); }
public RealmArrayBinary(ReferenceAccessor @ref) { var array = new RealmArray(@ref); this._array = array; this._offsets = new RealmArray(@ref.NewRef((ulong)array[0])); // ArrayBlob なので一応 Array のヘッダーを持っている this._blob = @ref.NewRef((ulong)array[1] + RealmArrayHeader.HeaderSize); // 旧バージョンでは nulls がなかった if (array.Count >= 3) { this._nulls = new RealmArray(@ref.NewRef((ulong)array[2])); } }
public RealmArrayStringLong(ReferenceAccessor @ref, bool nullable) { this.Nullable = nullable; var array = new RealmArray(@ref); this._array = array; this._offsets = new RealmArray(@ref.NewRef((ulong)array[0])); // ArrayBlob なので一応 Array のヘッダーを持っている this._blob = @ref.NewRef((ulong)array[1] + RealmArrayHeader.HeaderSize); if (nullable) { this._nulls = new RealmArray(@ref.NewRef((ulong)array[2])); } }
public TableSpec(ReferenceAccessor @ref) { this.Ref = @ref; var specArray = new RealmArray(@ref); this._types = new RealmArray(@ref.NewRef((ulong)specArray[0])); this._names = new RealmArrayString(@ref.NewRef((ulong)specArray[1]), false); this._attr = new RealmArray(@ref.NewRef((ulong)specArray[2])); if (specArray.Count >= 4) { var subspecsRef = (ulong)specArray[3]; if (subspecsRef != 0) { this._subspecs = new RealmArray(@ref.NewRef(subspecsRef)); } } }
public RealmArrayString(ReferenceAccessor @ref, bool nullable) { this.Ref = @ref; this.Header = new RealmArrayHeader(@ref); this.Nullable = nullable; }
public RealmArray(ReferenceAccessor @ref) { this.Ref = @ref; this.Header = new RealmArrayHeader(@ref); }
public RealmArrayBigBlobs(ReferenceAccessor @ref) { this._array = new RealmArray(@ref); }
public BpTree(ReferenceAccessor @ref) { this.Ref = @ref; this._root = new RealmArray(@ref); }
public RealmArrayIntNull(ReferenceAccessor @ref) { this._array = new RealmArray(@ref); }
public RealmArrayHeader(ReferenceAccessor @ref) { this.Ref = @ref; }