//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); } }
//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); } }
//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); } }