全國最多中醫師線上諮詢網站-台灣中醫網
發文 回覆 瀏覽次數:944
推到 Plurk!
推到 Facebook!

Delphi有這樣子的函數嗎?

答題得分者是:懷舊的人
superlevin
高階會員


發表:181
回覆:313
積分:180
註冊:2003-01-12

發送簡訊給我
#1 引用回覆 回覆 發表時間:2003-02-22 22:57:06 IP:218.184.xxx.xxx 未訂閱
請問Delphi中有這樣子的函數嗎? 1、AddDataToBuffer Adds nonstring data to a byte array. AddDataToBuffer( _ Buffer() As Byte, _ lData As Any, _ lSize As Long, _ lOffset As Long) Parameters Buffer Byte array to which the data is to be added. lData Data that is to be added to Buffer. lSize Size, in bytes, of the data in lData. The simplest way to determine this value is to use the Microsoft® Visual Basic® LenB function. You can also use one of the values from the CONST_DPLAYBUFSIZE enumeration. lOffset Long value containing the offset, in bytes, to the location in the byte array where the data is to be added. When the function returns, this parameter will be set to the offset of the first byte following the data that has just been added. 2、AddStringToBuffer Adds a string to a byte array. AddStringToBuffer( _ Buffer() As Byte, _ StringData As String, _ lOffset As Long) Parameters Buffer Byte array that the data is to be added to. StringData String value that is to be added to Buffer. lOffset Long value containing the offset, in bytes, to the location in the byte array where the data is to be added. When the function returns, this parameter will be set to the offset of the first byte following the data that has just been added. 3、GetDataFromBuffer Retrieves nonstring data from a byte array. GetDataFromBuffer( _ Buffer() As Byte, _ lData As Any, _ lSize As Long, _ lOffset As Long) Parameters Buffer Byte array from which the data is to be retrieved. lData Variable to receive the data that is retrieved from Buffer. lSize Size of the data in lData, in bytes. The simplest way to determine this value is to use the Visual Basic LenB function. You can also use one of the values from the CONST_DPLAYBUFSIZE enumeration. lOffset Offset, in bytes, to the location in the byte array from which the data is to be retrieved. When the function returns, this parameter will be set to the offset of the first byte following the data that has just been retrieved. 4、GetStringFromBuffer Retrieves string data from a byte array. GetStringFromBuffer( _ Buffer() As Byte, _ lOffset As Long) As String Parameters Buffer Byte array that the data is to be retrieved from. lOffset Long value containing the offset, in bytes, to the location in the byte array from which the data is to retrieved. When the function returns, this parameter will be set to the offset of the first byte following the data that has just been retrieved. 程式不是寫來玩的 而是要有價值
------
林壽山
網站: http://superlevin.ifengyuan.tw
mail: superlevin@gmail.com
懷舊的人
高階會員


發表:28
回覆:152
積分:141
註冊:2003-01-08

發送簡訊給我
#2 引用回覆 回覆 發表時間:2003-02-22 23:11:38 IP:218.187.xxx.xxx 未訂閱
Delphi有這些相關的函數,請參考這些 TStream , TRichEdit ...TStringList 等的 Method ,必須靈活運用。
系統時間:2024-11-22 21:20:09
聯絡我們 | Delphi K.Top討論版
本站聲明
1. 本論壇為無營利行為之開放平台,所有文章都是由網友自行張貼,如牽涉到法律糾紛一切與本站無關。
2. 假如網友發表之內容涉及侵權,而損及您的利益,請立即通知版主刪除。
3. 請勿批評中華民國元首及政府或批評各政黨,是藍是綠本站無權干涉,但這裡不是政治性論壇!