ihmin 2024. 9. 5. 14:08

홈페이지 : http://www.box.eu.org/~dl/tclbin.html

TclBin은 Tcl에서 포인터나 구조체의 개념을 갖는 바이너리 데이타를 취급하는 패키지입니다.

set file [open "tst.out" RDWR]
# read binary data
bin_read $file pt  ;
# manipulate from tcl binary structure
puts "X is $pt(x), Y is $pt(y) and n is $pt(n)";
set pt(n) [expr int($pt(x)+$pt(y))];
seek $file 0;
# write binary data
bin_write $file pt ;
close $file;

tclbin-1.2.tar.gz
0.15MB