-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathBTHNS_BLOB.cs
51 lines (44 loc) · 959 Bytes
/
BTHNS_BLOB.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
using System;
namespace RemoteController.Win32
{
internal abstract class BTHNS_BLOB : IDisposable
{
internal byte[] m_data;
/// <summary>
/// Size of the structure.
/// </summary>
internal int Length
{
get
{
return m_data.Length;
}
}
/// <summary>
/// Internal bytes
/// </summary>
/// <returns></returns>
internal byte[] ToByteArray()
{
return m_data;
}
#region IDisposable Members
protected virtual void Dispose(bool disposing)
{
if (disposing)
{
m_data = null;
}
}
public void Dispose()
{
Dispose(true);
GC.SuppressFinalize(this);
}
~BTHNS_BLOB()
{
Dispose(false);
}
#endregion
}
}