public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _entityID.unmarshal(dis);
                _communicationsDeviceID = dis.readUshort();
                _encodingScheme = dis.readUshort();
                _tdlType = dis.readUshort();
                _sampleRate = dis.readUint();
                _dataLength = dis.readUshort();
                _samples = dis.readUshort();
                _data = dis.readByteArray(_dataLength);
            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }
        public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _numberOfBytes = dis.readUshort();
                _dataValues = dis.readByteArray(_numberOfBytes);
            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }
Exemplo n.º 3
0
        public new void unmarshal(DataInputStream dis)
        {
            base.unmarshal(dis);

            try
            {
                _encodingScheme = dis.readUshort();
                _tdlType = dis.readUshort();
                _sampleRate = dis.readUint();
                _dataLength = dis.readShort();
                _samples = dis.readShort();
                _data = dis.readByteArray((_dataLength / 8) + (_dataLength % 8 > 0 ? 1 : 0));  //09062009 Post processed. Needed to convert from bits to bytes
            } // end try
            catch(Exception e)
            {
                Trace.WriteLine(e);
                Trace.Flush();
            }
        }