我把数据读如内存buffer中,现在想把buffer中的数据读处来,如何操作!
在线等待

解决方案 »

  1.   

    参考 
    TMemoryStream 的帮助。
      

  2.   

    Move函数,详细参考帮助
    参考 
    TMemoryStream 的帮助。
      

  3.   

    Copies bytes from a source to a destination.UnitSystemCategorymiscellaneous routinesDelphi syntax:procedure Move(const Source; var Dest; Count: Integer);C++ syntax:extern PACKAGE void __fastcall Move(const void *Source, void *Dest, int Count);DescriptionMove copies Count bytes from Source to Dest. No range checking is performed. Move compensates for overlaps between the source and destination blocks. Whenever possible, use the global SizeOf function (Delphi) or the sizeof operator (C++) to determine the count.var  A: array[1..4] of Char;
      B: Integer;
    begin
      Move(A, B, SizeOf(B));  { SizeOf = safety! }
    end;