-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathConstants.cs
More file actions
26 lines (21 loc) · 917 Bytes
/
Constants.cs
File metadata and controls
26 lines (21 loc) · 917 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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace MurrayGrant.MassiveSort
{
public static class Constants
{
public static readonly double OneMbAsDouble = 1024.0 * 1024.0;
public static readonly double OneGbAsDouble = 1024.0 * 1024.0 * 1024.0;
public static readonly Encoding Utf8NoBom = new UTF8Encoding(false);
public const char NewLine = '\n';
public const byte NewLineAsByte = (byte)'\n';
public const char NewLineAlt = '\r';
public const byte NewLineAsByteAlt = (byte)'\r';
public static readonly ReadOnlyMemory<byte> DollarHexPrefix = "$HEX["u8.ToArray();
public const byte DollarHexSuffixAsByte = (byte)']';
public static readonly ReadOnlyMemory<byte> DefaultWhitespace = new byte[] { 0x20, 0x09, 0x0b };
}
}