Start prepping for writer extensions

This commit is contained in:
Matt Nadareski
2024-04-25 12:00:45 -04:00
parent 8df3fe2473
commit e4c8bbc3f9
3 changed files with 37 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.IO;
using System.Runtime.InteropServices;
using System.Text;
namespace SabreTools.IO.Extensions
{
/// <summary>
/// Extensions for BinaryWriter
/// </summary>
/// <remarks>TODO: Add U/Int24 and U/Int48 methods</remarks>
public static class BinaryWriterExtensions
{
}
}

View File

@@ -11,6 +11,8 @@ namespace SabreTools.IO.Extensions
/// <remarks>TODO: Add U/Int24 and U/Int48 methods</remarks>
public static class ByteArrayExtensions
{
#region Read
/// <summary>
/// Read a UInt8 and increment the pointer to an array
/// </summary>
@@ -492,5 +494,13 @@ namespace SabreTools.IO.Extensions
return buffer;
}
#endregion
#region Write
#endregion
}
}

View File

@@ -12,6 +12,8 @@ namespace SabreTools.IO.Extensions
/// <remarks>TODO: Add U/Int24 and U/Int48 methods</remarks>
public static class StreamExtensions
{
#region Read
/// <summary>
/// Read a UInt8 from the stream
/// </summary>
@@ -512,5 +514,13 @@ namespace SabreTools.IO.Extensions
return buffer;
}
#endregion
#region Write
#endregion
}
}