「Vle-read-uint32-be」の版間の差分
 (ページの作成:「{{BCAD_LISP}} ; 構文 : (vle-read-uint32-be ''fptr'')   ; 機能 : ファイルから「符号なし32ビット整数」を読み込む(C++の「符号なし整数 / i…」)  | 
				編集の要約なし  | 
				||
| 47行目: | 47行目: | ||
[[Category:AutoLISP]]  | [[Category:AutoLISP]]  | ||
[[Category:BricsCADのLISP]]  | |||
2023年1月28日 (土) 08:13時点における最新版
- 構文
 - (vle-read-uint32-be fptr)
 
- 機能
 - ファイルから「符号なし32ビット整数」を読み込む(C++の「符号なし整数 / int32」型と同じ)。ビッグエンディアンのバイト列で保存されたデータ用
 
- 引数
 - 
- fptr: (open <filename> "rb") で開いたファイルディスクリプタ
 
 
- 戻り値
 - 成功した場合は valut値、そうでない場合は NIL
 
- サンプル
 
; テキストで 012あ を書き出す (setq fptr (open "c:\\temp\\bwtest.txt" "wb")) (vle-write-uint32-be fptr 48) (vle-write-uint32-be fptr 49) (vle-write-uint32-be fptr 50) (vle-write-uint32-be fptr 12354) (close fptr) (setq fptr (open "c:\\temp\\bwtest.txt" "rb")) (setq str "") (while (setq b (vle-read-uint32-be fptr)) (setq str (strcat str (chr b))) ) (close fptr) !str "012あ"
関連事項