Esempio n. 1
0
        public void Deserialize(BitReader reader)
        {
            using var s = new DatabaseScope(reader, true);

            if (s)
            {
                Value = reader.Read <long>();
            }
        }
Esempio n. 2
0
        public void Deserialize(BitReader reader)
        {
            var rowCount = reader.Read <uint>();

            using var s = new DatabaseScope(reader, true);

            if (!s)
            {
                return;
            }

            RowHeader = new FdbRowHeader(rowCount);
            RowHeader.Deserialize(reader);
        }
Esempio n. 3
0
        public void Deserialize(BitReader reader)
        {
            var columnCount = reader.Read <uint>();

            using var s = new DatabaseScope(reader, true);

            if (!s)
            {
                return;
            }

            Data = new FdbRowData(columnCount);

            Data.Deserialize(reader);
        }
Esempio n. 4
0
        public void Deserialize(BitReader reader)
        {
            RowInfos = new FdbRowInfo[_rowCount];

            for (var i = 0; i < _rowCount; i++)
            {
                using var s = new DatabaseScope(reader, true);

                if (!s)
                {
                    continue;
                }

                var info = new FdbRowInfo();

                RowInfos[i] = info;

                while (info != default)
                {
                    using (var scope = new DatabaseScope(reader, true))
                    {
                        if (scope)
                        {
                            info.DataHeader = new FdbRowDataHeader();

                            info.DataHeader.Deserialize(reader);
                        }
                    }

                    {
                        var scope = new DatabaseScope(reader, true);

                        if (!scope)
                        {
                            break;
                        }

                        info.Linked = new FdbRowInfo();

                        info = info.Linked;
                    }
                }
            }
        }