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; }
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; }
public void TestCompress() { byte[] byteDate = Encoding.UTF8.GetBytes("sdjflsdfkiijksjfdfs"); Console.Write(Marshal.ToHexDump("Compress", Marshal.Uncompress(Marshal.Compress(byteDate)))); }