org.diracvideo.Jirac.Arithmetic.BytesLeft C# (CSharp) Method

BytesLeft() public method

public BytesLeft ( ) : int
return int
        public int BytesLeft()
        {
            return (size - offset);
        }

Usage Example

Esempio n. 1
0
 private void TestArithmetic(Arithmetic a)
 {
     byte[] d = new byte[a.BytesLeft()];
     for(int i = 0; i < d.Length; i++) {
         byte c = 0;
         for(int j = 0; j < 8; j++) {
         c = (byte)((c << 1) | a.DecodeBit(j));
         }
         d[i] = c;
     }
     String s = System.Text.Encoding.Default.GetString(d);
     Console.WriteLine(s);
 }