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