Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CRYPTOAPI_BLOB.cs
Go to the documentation of this file.
1
using
System
;
2
using
System.Runtime.InteropServices
;
3
4
namespace
Internal.Cryptography.Pal.Native
;
5
6
internal
struct
CRYPTOAPI_BLOB
7
{
8
public
int
cbData
;
9
10
public
unsafe
byte
*
pbData
;
11
12
public
unsafe
CRYPTOAPI_BLOB
(
int
cbData
,
byte
*
pbData
)
13
{
14
this.cbData =
cbData
;
15
this.pbData =
pbData
;
16
}
17
18
public
unsafe
byte
[]
ToByteArray
()
19
{
20
if
(
cbData
== 0)
21
{
22
return
Array
.Empty<
byte
>();
23
}
24
byte
[]
array
=
new
byte
[
cbData
];
25
Marshal
.
Copy
((
IntPtr
)
pbData
,
array
, 0,
cbData
);
26
return
array
;
27
}
28
}
System.Array
Definition
Array.cs:16
System.Runtime.InteropServices.Marshal.Copy
static void Copy(int[] source, int startIndex, IntPtr destination, int length)
Definition
Marshal.cs:800
System.Runtime.InteropServices.Marshal
Definition
Marshal.cs:14
Internal.Cryptography.Pal.Native
Definition
CERT_BASIC_CONSTRAINTS2_INFO.cs:1
System.Runtime.InteropServices
Definition
SequenceMarshal.cs:4
System.ExceptionArgument.array
@ array
System
Definition
BlockingCollection.cs:8
Internal.Cryptography.Pal.Native.CRYPTOAPI_BLOB.cbData
int cbData
Definition
CRYPTOAPI_BLOB.cs:8
Internal.Cryptography.Pal.Native.CRYPTOAPI_BLOB.pbData
unsafe byte * pbData
Definition
CRYPTOAPI_BLOB.cs:10
Internal.Cryptography.Pal.Native.CRYPTOAPI_BLOB.CRYPTOAPI_BLOB
unsafe CRYPTOAPI_BLOB(int cbData, byte *pbData)
Definition
CRYPTOAPI_BLOB.cs:12
Internal.Cryptography.Pal.Native.CRYPTOAPI_BLOB.ToByteArray
unsafe byte[] ToByteArray()
Definition
CRYPTOAPI_BLOB.cs:18
Internal.Cryptography.Pal.Native.CRYPTOAPI_BLOB
Definition
CRYPTOAPI_BLOB.cs:7
System.IntPtr
Definition
IntPtr.cs:14
source
System.Security.Cryptography.X509Certificates
Internal.Cryptography.Pal.Native
CRYPTOAPI_BLOB.cs
Generated by
1.10.0