public Arrays(RuntimeSerializers serializers, ArrayContents contents) : base(serializers, contents)
 {
 }
示例#2
0
        private void _read()
        {
            _type = ((ValueType)m_io.ReadU1());
            switch (Type)
            {
            case ValueType.CustomSerializedObject: {
                _contents = new CustomSerializedObjectContents(m_io, this, m_root);
                break;
            }

            case ValueType.Php3Object: {
                _contents = new Php3ObjectContents(m_io, this, m_root);
                break;
            }

            case ValueType.Object: {
                _contents = new ObjectContents(m_io, this, m_root);
                break;
            }

            case ValueType.VariableReference: {
                _contents = new IntContents(m_io, this, m_root);
                break;
            }

            case ValueType.Php6String: {
                _contents = new StringContents(m_io, this, m_root);
                break;
            }

            case ValueType.Float: {
                _contents = new FloatContents(m_io, this, m_root);
                break;
            }

            case ValueType.ObjectReference: {
                _contents = new IntContents(m_io, this, m_root);
                break;
            }

            case ValueType.Null: {
                _contents = new NullContents(m_io, this, m_root);
                break;
            }

            case ValueType.Bool: {
                _contents = new BoolContents(m_io, this, m_root);
                break;
            }

            case ValueType.Int: {
                _contents = new IntContents(m_io, this, m_root);
                break;
            }

            case ValueType.Array: {
                _contents = new ArrayContents(m_io, this, m_root);
                break;
            }

            case ValueType.String: {
                _contents = new StringContents(m_io, this, m_root);
                break;
            }
            }
        }