/// <inheritdoc /> public Utf8Span GetUtf8SpanValue() { if (!( (this.JsonObjectState.CurrentTokenType == JsonTokenType.String) || (this.JsonObjectState.CurrentTokenType == JsonTokenType.FieldName))) { throw new JsonInvalidTokenException(); } return(JsonBinaryEncoding.GetUtf8SpanValue( this.rootBuffer, this.jsonBinaryBuffer.GetBufferedRawJsonToken(this.currentTokenPosition))); }