Exemple #1
0
 public void Compress()
 {
     byte[] array = Marshal.Compress(this.m_buffer, 20, base.Length - 20);
     this.m_offset = 20;
     this.Write(array);
     this.m_length = array.Length + 20;
 }
 public void Compress()
 {
     byte[] temp = Marshal.Compress(m_buffer, HDR_SIZE, Length - HDR_SIZE);
     m_offset = HDR_SIZE;
     Write(temp);
     m_length = temp.Length + HDR_SIZE;
 }
Exemple #3
0
 public void Compress()
 {
     byte[] temp = Marshal.Compress(this.m_buffer, (int)GSPacketIn.HDR_SIZE, base.Length - (int)GSPacketIn.HDR_SIZE);
     this.m_offset = (int)GSPacketIn.HDR_SIZE;
     this.Write(temp);
     this.m_length = temp.Length + (int)GSPacketIn.HDR_SIZE;
 }
Exemple #4
0
 public void TestCompress()
 {
     byte[] byteDate = Encoding.UTF8.GetBytes("sdjflsdfkiijksjfdfs");
     Console.Write(Marshal.ToHexDump("Compress", Marshal.Uncompress(Marshal.Compress(byteDate))));
 }