Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
CRYPTOAPI_BLOB.cs
Go to the documentation of this file.
1using System;
3
5
6internal 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];
26 return array;
27 }
28}
static void Copy(int[] source, int startIndex, IntPtr destination, int length)
Definition Marshal.cs:800
unsafe CRYPTOAPI_BLOB(int cbData, byte *pbData)