示例#1
0
 public static void WriteVLong(long i, FastOutputStream stream)
 {
     while ((i & ~0x7F) != 0)
     {
         stream.WriteByte((byte)((i & 0x7f) | 0x80));
         i >>= 7;
     }
     stream.WriteByte((byte)i);
 }
示例#2
0
 public void Marshal(Object nl, Stream os)
 {
     daos = new FastOutputStream(os);
     try
     {
         daos.WriteByte(VERSION);
         WriteVal(nl);
     }
     finally
     {
         daos.Flush();
         daos.Close();
     }
 }
示例#3
0
 public void Marshal(Object nl, Stream os)
 {
     daos = new FastOutputStream(os);
     try
     {
         daos.WriteByte(VERSION);
         WriteVal(nl);
     }
     finally
     {
         daos.Flush();
         daos.Close();
     }
 }
示例#4
0
 public static void WriteVLong(long i, FastOutputStream stream)
 {
     while ((i & ~0x7F) != 0)
     {
         stream.WriteByte((byte)((i & 0x7f) | 0x80));
         i >>= 7;
     }
     stream.WriteByte((byte)i);
 }