Exemplo n.º 1
0
 public bool WriteFrame(BinaryWriter writer)
 {
     writer.Write(mThreadID);
     writer.Write(mFrameNumber);
     writer.Write(mNumSamples);
     writer.Write(mStartTime);
     writer.Write(mBuffer.getBuf().Length);
     writer.Write(mBuffer.getBuf());
     return(true);
 }
Exemplo n.º 2
0
        public bool ReadFrame(BinaryReader reader)
        {
            mThreadID    = reader.ReadInt32();
            mFrameNumber = reader.ReadUInt64();
            mNumSamples  = reader.ReadUInt32();
            mStartTime   = reader.ReadDouble();
            int len = reader.ReadInt32();

            mBuffer = new BDynamicCoderBuf((int)len);
            reader.ReadBytes((int)len).CopyTo(mBuffer.getBuf(), 0);
            return(true);
        }