public string Decrypt(string text, ByteEncoding encoding)
 { return text; }
Exemple #2
0
 public static void EncodeByte(sbyte?data, ByteBuffer buffer)
 {
     ByteEncoding.Encode(data, buffer);
 }
Exemple #3
0
 public static sbyte?DecodeByte(ByteBuffer buffer)
 {
     return(ByteEncoding.Decode(buffer, 0));
 }
        private void ComboBoxByteEncodingDisplayFormats_SelectedIndexChanged(object sender, EventArgs e)
        {
            switch (ComboBoxByteEncodingDisplayFormats.SelectedIndex)
            {
                case 0:
                    m_byteEncoding = ByteEncoding.Hexadecimal;
                    break;
                case 1:
                    m_byteEncoding = ByteEncoding.Decimal;
                    break;
                case 2:
                    m_byteEncoding = ByteEncoding.BigEndianBinary;
                    break;
                case 3:
                    m_byteEncoding = ByteEncoding.LittleEndianBinary;
                    break;
                case 4:
                    m_byteEncoding = ByteEncoding.Base64;
                    break;
                case 5:
                    m_byteEncoding = ByteEncoding.ASCII;
                    break;
                default:
                    m_byteEncoding = ByteEncoding.Hexadecimal;
                    break;
            }

            RefreshSendReceiveByteDisplays();
        }
Exemple #5
0
 public static int GetByteEncodeSize(sbyte?value)
 {
     return(ByteEncoding.GetEncodeSize(value));
 }
Exemple #6
0
 public override object DecodeObject(ByteBuffer buffer, FormatCode formatCode)
 {
     return(ByteEncoding.Decode(buffer, formatCode));
 }
 // Token: 0x0600000B RID: 11 RVA: 0x00002B70 File Offset: 0x00001170
 public StreamHelper(string fileName, ByteEncoding byteEncoding = ByteEncoding.Little, FileMode fileMode = FileMode.OpenOrCreate, FileAccess fileAccess = FileAccess.ReadWrite, FileShare fileShare = FileShare.Read)
 {
     this._stream     = new FileStream(fileName, fileMode, fileAccess, fileShare);
     this._streamType = typeof(FileStream);
     this.SetByteEncoding(byteEncoding);
 }
 // Token: 0x0600000A RID: 10 RVA: 0x00002B45 File Offset: 0x00001145
 public StreamHelper(Stream stream, ByteEncoding byteEncoding = ByteEncoding.Little, Type streamType = null)
 {
     this._stream     = stream;
     this._streamType = (streamType ?? typeof(Stream));
     this.SetByteEncoding(byteEncoding);
 }
 // Token: 0x06000009 RID: 9 RVA: 0x00002B1B File Offset: 0x0000111B
 public StreamHelper(ByteEncoding byteEncoding = ByteEncoding.Little)
 {
     this._stream     = new MemoryStream();
     this._streamType = typeof(MemoryStream);
     this.SetByteEncoding(byteEncoding);
 }
        // Token: 0x06000019 RID: 25 RVA: 0x00002E78 File Offset: 0x00001478
        public ulong ReadUInt64(ByteEncoding byteEncoding = ByteEncoding.None)
        {
            ByteEncoding byteEncoding2 = (byteEncoding == ByteEncoding.None) ? this._byteEncoding : byteEncoding;

            return((ulong)(this.ReadUInt32(byteEncoding2) | this.ReadUInt32(byteEncoding2)));
        }