/// <inheritdoc /> public override UtfAnyString GetStringValue(IJsonNavigatorNode stringNode) { ReadOnlyMemory <byte> buffer = JsonBinaryNavigator.GetNodeOfType( JsonNodeType.String, stringNode); return(JsonBinaryEncoding.GetUtf8StringValue( this.rootBuffer, buffer)); }
/// <inheritdoc /> public override Utf8String GetUtf8StringValue() { if (!( (this.JsonObjectState.CurrentTokenType == JsonTokenType.String) || (this.JsonObjectState.CurrentTokenType == JsonTokenType.FieldName))) { throw new JsonInvalidTokenException(); } return(JsonBinaryEncoding.GetUtf8StringValue( this.rootBuffer, this.jsonBinaryBuffer.GetBufferedRawJsonToken(this.currentTokenPosition))); }