示例#1
0
 internal static bool ReadArray(PageCursor cursor, Org.Neo4j.Values.Storable.ValueWriter_ArrayType type, ArrayElementReader reader, GenericKey into)
 {
     if (!SetArrayLengthWhenReading(into, cursor, cursor.Short))
     {
         return(false);
     }
     into.BeginArray(into.ArrayLength, type);
     for (int i = 0; i < into.ArrayLength; i++)
     {
         if (!reader(cursor, into))
         {
             return(false);
         }
     }
     into.EndArray();
     return(true);
 }