2024-04-19 23:12:24 -05:00
|
|
|
|
# CompressToString Method
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Compresses a given object to a string using `base64` encoding of `gzip` format.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Definition
|
2024-04-21 03:30:36 -05:00
|
|
|
|
**Namespace:** <a href="N_CapyKit_Helpers.md">CapyKit.Helpers</a>
|
2024-09-04 19:31:43 -05:00
|
|
|
|
**Assembly:** CapyKit (in CapyKit.dll) Version: 1.0.2
|
2024-04-19 23:12:24 -05:00
|
|
|
|
|
|
|
|
|
**C#**
|
|
|
|
|
``` C#
|
|
|
|
|
public static string CompressToString(
|
|
|
|
|
Object obj
|
|
|
|
|
)
|
|
|
|
|
```
|
|
|
|
|
**F#**
|
|
|
|
|
``` F#
|
|
|
|
|
static member CompressToString :
|
|
|
|
|
obj : Object -> string
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### Parameters
|
|
|
|
|
<dl><dt> <a href="https://learn.microsoft.com/dotnet/api/system.object" target="_blank" rel="noopener noreferrer">Object</a></dt><dd>The object.</dd></dl>
|
|
|
|
|
|
|
|
|
|
#### Return Value
|
|
|
|
|
<a href="https://learn.microsoft.com/dotnet/api/system.string" target="_blank" rel="noopener noreferrer">String</a>
|
|
|
|
|
A string in `base64` encoding.
|
|
|
|
|
|
|
|
|
|
## See Also
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#### Reference
|
2024-04-21 03:30:36 -05:00
|
|
|
|
<a href="T_CapyKit_Helpers_CompressionHelper.md">CompressionHelper Class</a>
|
|
|
|
|
<a href="N_CapyKit_Helpers.md">CapyKit.Helpers Namespace</a>
|