CSJ2K.j2k.io.BEBufferedRandomAccessFile.writeShort C# (CSharp) Method

writeShort() public method

Writes the short value of v (i.e., 16 least significant bits) to the output. Prior to writing, the output should be realigned at the byte level.

Signed or unsigned data can be written. To write a signed value just pass the short value as an argument. To write unsigned data pass the int value as an argument (it will be automatically casted, and only the 16 least significant bits will be written).

If an I/O error ocurred. /// ///
public writeShort ( int v ) : void
v int The value to write to the output /// ///
return void
        public override void writeShort(int v)
        {
            write(SupportClass.URShift(v, 8));
            write(v);
        }