-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathReport.cs
More file actions
32 lines (28 loc) · 772 Bytes
/
Report.cs
File metadata and controls
32 lines (28 loc) · 772 Bytes
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
namespace BuzzIO
{
/// <summary>
/// Base class for report types. Simply wraps a byte buffer.
/// </summary>
public abstract class Report
{
#region Properties
/// <summary>
/// Buffer for the raw report bytes
/// </summary>
public byte[] Buffer { get; private set; }
/// <summary>
/// Length of the report
/// </summary>
public int BufferLength { get; private set; }
#endregion
/// <summary>
/// Sets the raw byte array.
/// </summary>
/// <param name="arrBytes">Raw report bytes</param>
protected void SetBuffer(byte[] arrBytes)
{
Buffer = arrBytes;
BufferLength = Buffer.Length;
}
}
}