Esempio n. 1
0
 //Reads variable length long varibale to the stream
 public override int readVInt()
 {
     try
     {
         return(UnsignedNumeric.readUnsignedInt(this));
     }
     catch (IOException e)
     {
         logger.Warn(e);
         throw new TransportException(e);
     }
 }
Esempio n. 2
0
 //Writing and reading Variable Length numerics are handed by UnsignedNumeric Class.
 //Writes variable length integer varibale to the stream
 public override void writeVInt(int vInt)
 {
     try
     {
         UnsignedNumeric.writeUnsignedInt(this, vInt);
     }
     catch (IOException e)
     {
         logger.Warn(e);
         throw new TransportException(e);
     }
 }
Esempio n. 3
0
 //Writes variable length long varibale to the stream
 public override void writeVLong(long l)
 {
     try
     {
         UnsignedNumeric.writeUnsignedLong(this, l);
     }
     catch (IOException e)
     {
         logger.Warn(e);
         throw new TransportException(e);
     }
 }