Exemple #1
0
 internal JsonDeserializationContext(JsonPropertyReader visitor, JsonAdapterCollection.Enumerator adapters, UnsafeValueView view, bool isRoot)
 {
     m_Visitor  = visitor;
     m_Adapters = adapters;
     m_View     = view;
     m_IsRoot   = isRoot;
 }
Exemple #2
0
        /// <summary>
        /// Gets the shared <see cref="JsonPropertyReader"/>.
        /// </summary>
        /// <returns>The <see cref="JsonPropertyReader"/>.</returns>
        internal JsonPropertyReader GetJsonPropertyReader()
        {
            if (null != m_JsonPropertyReader)
            {
                return(m_JsonPropertyReader.IsLocked ? new JsonPropertyReader() : m_JsonPropertyReader);
            }

            m_JsonPropertyReader = new JsonPropertyReader();
            return(m_JsonPropertyReader);
        }
Exemple #3
0
 public SerializedTypeScope(JsonPropertyReader visitor, Type type)
 {
     m_SerializedType           = visitor.m_SerializedType;
     m_Visitor                  = visitor;
     m_Visitor.m_SerializedType = type;
 }
Exemple #4
0
 public DisableRootMigrationScope(JsonPropertyReader visitor, bool disableRootMigration)
 {
     m_DisableRootMigration = visitor.m_DisableRootMigration;
     m_Visitor = visitor;
     m_Visitor.m_DisableRootMigration = disableRootMigration;
 }
Exemple #5
0
 public UnsafeViewScope(JsonPropertyReader visitor, UnsafeValueView view)
 {
     m_View           = visitor.m_View;
     m_Visitor        = visitor;
     m_Visitor.m_View = view;
 }
Exemple #6
0
 public SerializedContainerMetadataScope(JsonPropertyReader visitor, SerializedContainerMetadata metadata)
 {
     m_Visitor            = visitor;
     m_Metadata           = m_Visitor.m_Metadata;
     m_Visitor.m_Metadata = metadata;
 }