public static byte[] ToByteArray(this uint v, int length) { return(ExtensionHelper.BlockCopy(BitConverter.GetBytes(v), length)); }
public static byte[] ToByteArray(this byte[] a, int length) { return(ExtensionHelper.BlockCopy(a, length)); }
public static byte[] ToByteArray(this string s, int length) { return(ExtensionHelper.BlockCopy(s.ToCharArray(), length)); }