---
title: "System::Text::Json::Utf8JsonWriterCache::RentWriterAndBuffer method"
url: "https://reference.aspose.com/pdf/cpp/system.text.json/utf8jsonwritercache/rentwriterandbuffer/"
product: "Aspose.PDF for C++ API Reference"
description: "How to use RentWriterAndBuffer method of System::Text::Json::Utf8JsonWriterCache class in C++."
---

## Utf8JsonWriterCache::RentWriterAndBuffer(JsonWriterOptions, int32_t, System::SharedPtr\<PooledByteBufferWriter\>\&) method




```cpp
static System::SharedPtr<Utf8JsonWriter> System::Text::Json::Utf8JsonWriterCache::RentWriterAndBuffer(JsonWriterOptions options, int32_t defaultBufferSize, System::SharedPtr<PooledByteBufferWriter> &bufferWriter)
```

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Utf8JsonWriter](../../utf8jsonwriter/)
* Class [JsonWriterOptions](../../jsonwriteroptions/)
* Class [PooledByteBufferWriter](../../pooledbytebufferwriter/)
* Class [Utf8JsonWriterCache](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
## Utf8JsonWriterCache::RentWriterAndBuffer(System::SharedPtr\<JsonSerializerOptions\>, System::SharedPtr\<PooledByteBufferWriter\>\&) method




```cpp
static System::SharedPtr<Utf8JsonWriter> System::Text::Json::Utf8JsonWriterCache::RentWriterAndBuffer(System::SharedPtr<JsonSerializerOptions> options, System::SharedPtr<PooledByteBufferWriter> &bufferWriter)
```

## See Also

* Typedef [SharedPtr](../../../system/sharedptr/)
* Class [Utf8JsonWriter](../../utf8jsonwriter/)
* Class [JsonSerializerOptions](../../jsonserializeroptions/)
* Class [PooledByteBufferWriter](../../pooledbytebufferwriter/)
* Class [Utf8JsonWriterCache](../)
* Namespace [System::Text::Json](../../)
* Library [Aspose.PDF for C++](../../../)
