using System;
using System.Collections.Generic;
using System.Text;
using System.Runtime.InteropServices;
using System.IO;
namespace Vestris.ResourceLib
{
///
/// Resource utilities.
///
public abstract class ResourceUtil
{
///
/// Pad bytes.
///
/// Binary stream.
/// Number of bytes to write.
/// New position within the stream.
internal static long Pad(BinaryWriter w, UInt16 len)
{
while (len-- > 0)
w.Write((byte) 0);
return w.BaseStream.Position;
}
}
}