Example #1
0
 /// <summary>Gets the stream size of the current stream.</summary>
 public static StreamSize GetStreamSize(this Stream stream)
 {
     return(StreamSize.FromStream(stream));
 }
Example #2
0
 /// <summary>Gets the size of the byte array.</summary>
 public static StreamSize GetStreamSize(this byte[] bytes)
 {
     return(StreamSize.FromByteArray(bytes));
 }
Example #3
0
 /// <summary>Gets the size of the current file.</summary>
 public static StreamSize GetStreamSize(this FileInfo fileInfo)
 {
     return(StreamSize.FromFileInfo(fileInfo));
 }
 partial void OnReadXml(StreamSize other);