/// <summary> /// Generates a base64 string out of this binary array. /// </summary> public static string ToBase64String(SizableArrayOfByte array) { if (array == null || array.Length == 0) { return(null); } return(Convert.ToBase64String(array.Data, 0, array.Length, Base64FormattingOptions.None)); }
public void CopyFrom(SizableArrayOfByte src) { if (src == null) { SetLength(0); } else { SetLength(src.Length); if (Length > 0) { Buffer.BlockCopy(src.Data, 0, Data, 0, Length); } HashCode = src.HashCode; } }
/// <summary> /// Ctr. /// Copies data from <paramref name="src"/>. /// </summary> public SizableArrayOfByte(SizableArrayOfByte src) { CopyFrom(src); }