MCPcopy Create free account
hub / github.com/USCiLab/cereal / StartArray

Method StartArray

include/cereal/external/rapidjson/schema.h:988–998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

986 }
987
988 bool StartArray(Context& context) const {
989 if (!(type_ & (1 << kArraySchemaType))) {
990 DisallowedType(context, GetArrayString());
991 CEREAL_RAPIDJSON_INVALID_KEYWORD_RETURN(GetTypeString());
992 }
993
994 context.arrayElementIndex = 0;
995 context.inArray = true;
996
997 return CreateParallelValidator(context);
998 }
999
1000 bool EndArray(Context& context, SizeType elementCount) const {
1001 context.inArray = false;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected