Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ url: /cpp/system.collections.generic/defaultcomparer/
Default comparator class. Uses operator < and operator == to compare values. Objects of this class should only be allocated using [System::MakeObject()](../../system/makeobject/) function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into [System::SmartPtr](../../system/smartptr/) pointer and use this pointer to pass it to functions as argument.

```cpp
template<class T>class DefaultComparer : public System::Collections::Generic::IComparer<T>
template<class T,typename>class DefaultComparer : public System::Collections::Generic::IComparer<T>
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ url: /cpp/system.collections.generic/defaultcomparer/basetype/
Interface implemented.

```cpp
using System::Collections::Generic::DefaultComparer< T >::BaseType = IComparer<T>
using System::Collections::Generic::DefaultComparer< T, typename >::BaseType = IComparer<T>
```

## See Also
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ url: /cpp/system.collections.generic/defaultcomparer/compare/
RTTI information.

```cpp
virtual int System::Collections::Generic::DefaultComparer<T>::Compare(typename ThisType::args_type x, typename ThisType::args_type y) const override
virtual int System::Collections::Generic::DefaultComparer<T, typename>::Compare(typename ThisType::args_type x, typename ThisType::args_type y) const override
```


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ url: /cpp/system.collections.generic/defaultcomparer/thistype/
Curent type.

```cpp
using System::Collections::Generic::DefaultComparer< T >::ThisType = DefaultComparer<T>
using System::Collections::Generic::DefaultComparer< T, typename >::ThisType = DefaultComparer<T>
```

## See Also
Expand Down
6 changes: 1 addition & 5 deletions english/cpp/system.io.compression/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,12 @@ url: /cpp/system.io.compression/



## Enums

| Enum | Description |
| --- | --- |
| [CompressionLevel](./compressionlevel/) | Specifies values that indicate whether a compression operation emphasizes speed or compression size. |
## Typedefs

| Typedef | Description |
| --- | --- |
| [BrotliStream](./brotlistream/) | An alias for Aspose::Brotli::BrotliStream. |
| [CompressionLevel](./compressionlevel/) | An alias for Aspose::Zip::CompressionLevel enum. |
| [CompressionMode](./compressionmode/) | An alias for Aspose::Zip::CompressionMode enum. |
| [DeflateStream](./deflatestream/) | An alias for Aspose::Zip::DeflateStream. |
| [GZipStream](./gzipstream/) | An alias for Aspose::Zip::GZipStream. |
2 changes: 1 addition & 1 deletion english/cpp/system.io.compression/brotlistream/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: BrotliStream
second_title: Aspose.PDF for C++ API Reference
description: 'System::IO::Compression::BrotliStream typedef. An alias for Aspose::Brotli::BrotliStream in C++.'
type: docs
weight: 200
weight: 100
url: /cpp/system.io.compression/brotlistream/
---
## BrotliStream typedef
Expand Down
20 changes: 6 additions & 14 deletions english/cpp/system.io.compression/compressionlevel/_index.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,21 @@
---
title: System::IO::Compression::CompressionLevel enum
title: System::IO::Compression::CompressionLevel typedef
linktitle: CompressionLevel
second_title: Aspose.PDF for C++ API Reference
description: 'System::IO::Compression::CompressionLevel enum. Specifies values that indicate whether a compression operation emphasizes speed or compression size in C++.'
description: 'System::IO::Compression::CompressionLevel typedef. An alias for Aspose::Zip::CompressionLevel enum in C++.'
type: docs
weight: 100
weight: 200
url: /cpp/system.io.compression/compressionlevel/
---
## CompressionLevel enum
## CompressionLevel typedef


Specifies values that indicate whether a compression operation emphasizes speed or compression size.
An alias for Aspose::Zip::CompressionLevel enum.

```cpp
enum class CompressionLevel
using System::IO::Compression::CompressionLevel = Aspose::Zip::CompressionLevel
```

### Values

| Name | Value | Description |
| --- | --- | --- |
| Optimal | 0 | |
| Fastest | 1 | |
| NoCompression | 2 | |

## See Also

* Namespace [System::IO::Compression](../)
Expand Down
2 changes: 2 additions & 0 deletions english/cpp/system.io/stream/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ class Stream : public System::IDisposable
| virtual [Read](./read/)(const ArrayPtr\<uint8_t\>\&, int32_t, int32_t) | Reads the specified number of bytes from the stream and writes them to the specified byte array. |
| virtual [Read](./read/)(const System::Details::ArrayView\<uint8_t\>\&, int32_t, int32_t) | Reads the specified number of bytes from the stream and writes them to the specified byte array. |
| [Read](./read/)(const System::Details::StackArray\<uint8_t, N\>\&, int32_t, int32_t) | Reads the specified number of bytes from the stream and writes them to the specified byte array. |
| virtual [Read](./read/)(const System::Span\<uint8_t\>\&) | Reads the specified number of bytes from the stream and writes them to the specified byte span. |
| virtual [ReadAsync](./readasync/)(const ArrayPtr\<uint8_t\>\&, int32_t, int32_t, const Threading::CancellationToken\&) | Asynchronously reads a sequence of bytes from the current stream, advances the position within the stream by the number of bytes read, and monitors cancellation requests. |
| [ReadAsync](./readasync/)(const ArrayPtr\<uint8_t\>\&, int32_t, int32_t) | Asynchronously reads a sequence of bytes from the current stream, advances the position within the stream by the number of bytes read, and monitors cancellation requests. |
| virtual [ReadByte](./readbyte/)() | Reads a single byte from the stream and returns a 32-bit integer value equivalent to the value of the read byte. |
Expand All @@ -53,6 +54,7 @@ class Stream : public System::IDisposable
| virtual [Write](./write/)(const ArrayPtr\<uint8_t\>\&, int32_t, int32_t) | Writes the specified subrange of bytes from the specified byte array to the stream. |
| virtual [Write](./write/)(const System::Details::ArrayView\<uint8_t\>\&, int32_t, int32_t) | Writes the specified subrange of bytes from the specified byte array to the stream. |
| [Write](./write/)(const System::Details::StackArray\<uint8_t, N\>\&, int32_t, int32_t) | Writes the specified subrange of bytes from the specified byte array to the stream. |
| virtual [Write](./write/)(const System::ReadOnlySpan\<uint8_t\>\&) | Writes the specified subrange of bytes from the specified byte span to the stream. |
| virtual [WriteAsync](./writeasync/)(const ArrayPtr\<uint8_t\>\&, int32_t, int32_t, const Threading::CancellationToken\&) | Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests. |
| [WriteAsync](./writeasync/)(const ArrayPtr\<uint8_t\>\&, int32_t, int32_t) | Asynchronously writes a sequence of bytes to the current stream, advances the current position within this stream by the number of bytes written, and monitors cancellation requests. |
| virtual [WriteByte](./writebyte/)(uint8_t) | Writes the specified unsigned 8-bit integer value to the stream. |
Expand Down
24 changes: 24 additions & 0 deletions english/cpp/system.io/stream/read/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,3 +87,27 @@ The number of bytes read
* Class [Stream](../)
* Namespace [System::IO](../../)
* Library [Aspose.PDF for C++](../../../)
## Stream::Read(const System::Span\<uint8_t\>\&) method


Reads the specified number of bytes from the stream and writes them to the specified byte span.

```cpp
virtual int32_t System::IO::Stream::Read(const System::Span<uint8_t> &buffer)
```


| Parameter | Type | Description |
| --- | --- | --- |
| buffer | const System::Span\<uint8_t\>\& | The byte span to write the read bytes to |

### ReturnValue

The number of bytes read

## See Also

* Class [Span](../../../system/span/)
* Class [Stream](../)
* Namespace [System::IO](../../)
* Library [Aspose.PDF for C++](../../../)
20 changes: 20 additions & 0 deletions english/cpp/system.io/stream/write/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,23 @@ template<std::size_t> void System::IO::Stream::Write(const System::Details::Stac
* Class [Stream](../)
* Namespace [System::IO](../../)
* Library [Aspose.PDF for C++](../../../)
## Stream::Write(const System::ReadOnlySpan\<uint8_t\>\&) method


Writes the specified subrange of bytes from the specified byte span to the stream.

```cpp
virtual void System::IO::Stream::Write(const System::ReadOnlySpan<uint8_t> &buffer)
```


| Parameter | Type | Description |
| --- | --- | --- |
| buffer | const System::ReadOnlySpan\<uint8_t\>\& | The byte span to read the written bytes from |

## See Also

* Class [ReadOnlySpan](../../../system/readonlyspan/)
* Class [Stream](../)
* Namespace [System::IO](../../)
* Library [Aspose.PDF for C++](../../../)
3 changes: 3 additions & 0 deletions english/cpp/system.runtime.interopservices/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ url: /cpp/system.runtime.interopservices/
| Class | Description |
| --- | --- |
| [Marshal](./marshal/) | Provides marshalling implementation. For compatibility with translated code only, as no managed code is supported on C++ side. This is a static type with no instance services. You should never create instances of it by any means. |
| [MemoryMarshal](./memorymarshal/) | Provides memory marshalling implementation. For compatibility with translated code only, as no managed code is supported on C++ side. This is a static type with no instance services. You should never create instances of it by any means. |
| [NativeLibrary](./nativelibrary/) | |
| [OSPlatform](./osplatform/) | |
## Enums

| Enum | Description |
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: ExternalException
second_title: Aspose.PDF for C++ API Reference
description: 'How to use System::Runtime::InteropServices::ExternalException typedef in C++.'
type: docs
weight: 400
weight: 700
url: /cpp/system.runtime.interopservices/externalexception/
---
## ExternalException typedef
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: GCHandleType
second_title: Aspose.PDF for C++ API Reference
description: 'System::Runtime::InteropServices::GCHandleType enum. Defines how handle is treated by garbage collector in C++.'
type: docs
weight: 200
weight: 500
url: /cpp/system.runtime.interopservices/gchandletype/
---
## GCHandleType enum
Expand Down
3 changes: 3 additions & 0 deletions english/cpp/system.runtime.interopservices/marshal/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ class Marshal
| static [Copy](./copy/)(const container\&, int, void *, int) | Implements public static void Copy(char[] source, int startIndex, IntPtr destination, int length). |
| static [Copy](./copy/)(const container\&, int, IntPtr, int) | Implements public static void Copy(char[] source, int startIndex, IntPtr destination, int length). |
| static [FreeHGlobal](./freehglobal/)(IntPtr) | Frees unmanaged memory. |
| static [GetDelegateForFunctionPointer](./getdelegateforfunctionpointer/)(IntPtr) | Converts an unmanaged function pointer to a delegate of a specified type. |
| static [GetHRForException](./gethrforexception/)(const System::Exception\&) | Gets HResult from exception. |
| static [PtrToStringAnsi](./ptrtostringansi/)(IntPtr) | Creates a managed [String](../../system/string/) from an unmanaged zero-terminated UTF8-string. |
| static [PtrToStringAnsi](./ptrtostringansi/)(IntPtr, int) | Creates a managed [String](../../system/string/) from an unmanaged UTF8-string. |
Expand All @@ -39,6 +40,7 @@ class Marshal
| static [ReadByte](./readbyte/)(IntPtr, int) | Reads byte from memory. |
| static [ReadInt16](./readint16/)(IntPtr, int) | Reads short from memory. |
| static [ReadInt32](./readint32/)(IntPtr, int) | Reads int from memory. |
| static [ReadIntPtr](./readintptr/)(IntPtr, int) | Reads IntPtr from memory. |
| static [SecureStringToGlobalAllocAnsi](./securestringtoglobalallocansi/)(const SharedPtr\<Security::SecureString\>\&) | Copies contents of specified secure string into unmanaged memory, converting into ANSI format. |
| static [SecureStringToGlobalAllocUnicode](./securestringtoglobalallocunicode/)(const SharedPtr\<Security::SecureString\>\&) | Copies contents of specified secure string into unmanaged memory. |
| static [StringToHGlobalAnsi](./stringtohglobalansi/)(const String\&) | Copies the contents of a specified string into unmanaged memory. |
Expand All @@ -49,6 +51,7 @@ class Marshal
| static [WriteInt16](./writeint16/)(IntPtr, int, int16_t) | Writes short to memory. |
| static [WriteInt32](./writeint32/)(IntPtr, int, int32_t) | Writes int to memory. |
| static [WriteInt64](./writeint64/)(IntPtr, int, int64_t) | Writes long to memory. |
| static [WriteIntPtr](./writeintptr/)(IntPtr, int, IntPtr) | Writes IntPtr to memory. |
| static [ZeroFreeGlobalAllocAnsi](./zerofreeglobalallocansi/)(IntPtr) | Frees unmanaged string pointer that was allocated using the SecureStringToGlobalAllocAnsi method. |
| static [ZeroFreeGlobalAllocUnicode](./zerofreeglobalallocunicode/)(IntPtr) | Frees unmanaged string pointer that was allocated using the SecureStringToGlobalAllocUnicode method. |
## See Also
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
---
title: System::Runtime::InteropServices::Marshal::GetDelegateForFunctionPointer method
linktitle: GetDelegateForFunctionPointer
second_title: Aspose.PDF for C++ API Reference
description: 'System::Runtime::InteropServices::Marshal::GetDelegateForFunctionPointer method. Converts an unmanaged function pointer to a delegate of a specified type in C++.'
type: docs
weight: 400
url: /cpp/system.runtime.interopservices/marshal/getdelegateforfunctionpointer/
---
## Marshal::GetDelegateForFunctionPointer method


Converts an unmanaged function pointer to a delegate of a specified type.

```cpp
template<typename TDelegate> static TDelegate System::Runtime::InteropServices::Marshal::GetDelegateForFunctionPointer(IntPtr ptr)
```


| Parameter | Description |
| --- | --- |
| TDelegate | The type of the delegate to return. |

| Parameter | Type | Description |
| --- | --- | --- |
| ptr | IntPtr | The unmanaged function pointer to convert. |

### ReturnValue

A instance of the specified delegate type.
## Remarks



An rough stub for future implementation

## See Also

* Class [Marshal](../)
* Namespace [System::Runtime::InteropServices](../../)
* Library [Aspose.PDF for C++](../../../)
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: GetHRForException
second_title: Aspose.PDF for C++ API Reference
description: 'System::Runtime::InteropServices::Marshal::GetHRForException method. Gets HResult from exception in C++.'
type: docs
weight: 400
weight: 500
url: /cpp/system.runtime.interopservices/marshal/gethrforexception/
---
## Marshal::GetHRForException method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: PtrToStringAnsi
second_title: Aspose.PDF for C++ API Reference
description: 'System::Runtime::InteropServices::Marshal::PtrToStringAnsi method. Creates a managed String from an unmanaged zero-terminated UTF8-string in C++.'
type: docs
weight: 500
weight: 600
url: /cpp/system.runtime.interopservices/marshal/ptrtostringansi/
---
## Marshal::PtrToStringAnsi(IntPtr) method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: PtrToStringAuto
second_title: Aspose.PDF for C++ API Reference
description: 'System::Runtime::InteropServices::Marshal::PtrToStringAuto method. Creates a managed String from an unmanaged zero-terminated string in C++.'
type: docs
weight: 600
weight: 700
url: /cpp/system.runtime.interopservices/marshal/ptrtostringauto/
---
## Marshal::PtrToStringAuto(IntPtr) method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: PtrToStringUni
second_title: Aspose.PDF for C++ API Reference
description: 'System::Runtime::InteropServices::Marshal::PtrToStringUni method. Creates a managed String from an unmanaged zero-terminated unicode string in C++.'
type: docs
weight: 700
weight: 800
url: /cpp/system.runtime.interopservices/marshal/ptrtostringuni/
---
## Marshal::PtrToStringUni(IntPtr) method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: PtrToStringUTF8
second_title: Aspose.PDF for C++ API Reference
description: 'System::Runtime::InteropServices::Marshal::PtrToStringUTF8 method. Creates a managed String from an unmanaged zero-terminated UTF8-string in C++.'
type: docs
weight: 800
weight: 900
url: /cpp/system.runtime.interopservices/marshal/ptrtostringutf8/
---
## Marshal::PtrToStringUTF8(IntPtr) method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: ReadByte
second_title: Aspose.PDF for C++ API Reference
description: 'System::Runtime::InteropServices::Marshal::ReadByte method. Reads byte from memory in C++.'
type: docs
weight: 900
weight: 1000
url: /cpp/system.runtime.interopservices/marshal/readbyte/
---
## Marshal::ReadByte method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: ReadInt16
second_title: Aspose.PDF for C++ API Reference
description: 'System::Runtime::InteropServices::Marshal::ReadInt16 method. Reads short from memory in C++.'
type: docs
weight: 1000
weight: 1100
url: /cpp/system.runtime.interopservices/marshal/readint16/
---
## Marshal::ReadInt16 method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: ReadInt32
second_title: Aspose.PDF for C++ API Reference
description: 'System::Runtime::InteropServices::Marshal::ReadInt32 method. Reads int from memory in C++.'
type: docs
weight: 1100
weight: 1200
url: /cpp/system.runtime.interopservices/marshal/readint32/
---
## Marshal::ReadInt32 method
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
---
title: System::Runtime::InteropServices::Marshal::ReadIntPtr method
linktitle: ReadIntPtr
second_title: Aspose.PDF for C++ API Reference
description: 'System::Runtime::InteropServices::Marshal::ReadIntPtr method. Reads IntPtr from memory in C++.'
type: docs
weight: 1300
url: /cpp/system.runtime.interopservices/marshal/readintptr/
---
## Marshal::ReadIntPtr method


Reads IntPtr from memory.

```cpp
static IntPtr System::Runtime::InteropServices::Marshal::ReadIntPtr(IntPtr ptr, int offset=0)
```


| Parameter | Type | Description |
| --- | --- | --- |
| ptr | IntPtr | Memory buffer. |
| offset | int | Offset to memory buffer. |

### ReturnValue

Read value.

## See Also

* Class [Marshal](../)
* Namespace [System::Runtime::InteropServices](../../)
* Library [Aspose.PDF for C++](../../../)
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: SecureStringToGlobalAllocAnsi
second_title: Aspose.PDF for C++ API Reference
description: 'System::Runtime::InteropServices::Marshal::SecureStringToGlobalAllocAnsi method. Copies contents of specified secure string into unmanaged memory, converting into ANSI format in C++.'
type: docs
weight: 1200
weight: 1400
url: /cpp/system.runtime.interopservices/marshal/securestringtoglobalallocansi/
---
## Marshal::SecureStringToGlobalAllocAnsi method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: SecureStringToGlobalAllocUnicode
second_title: Aspose.PDF for C++ API Reference
description: 'System::Runtime::InteropServices::Marshal::SecureStringToGlobalAllocUnicode method. Copies contents of specified secure string into unmanaged memory in C++.'
type: docs
weight: 1300
weight: 1500
url: /cpp/system.runtime.interopservices/marshal/securestringtoglobalallocunicode/
---
## Marshal::SecureStringToGlobalAllocUnicode method
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ linktitle: StringToHGlobalAnsi
second_title: Aspose.PDF for C++ API Reference
description: 'System::Runtime::InteropServices::Marshal::StringToHGlobalAnsi method. Copies the contents of a specified string into unmanaged memory in C++.'
type: docs
weight: 1400
weight: 1600
url: /cpp/system.runtime.interopservices/marshal/stringtohglobalansi/
---
## Marshal::StringToHGlobalAnsi method
Expand Down
Loading
Loading