Lines Matching refs:data
21 # binary data.
27 set data [read $fd]
29 return $data
34 # $iFrame in the file is correct when interpreting data as $endian-endian
39 set data [readfile $filename]
41 foreach {offset c1 c2} [log_checksum_calc $data $iFrame $endian] {}
43 binary scan [string range $data $offset [expr $offset+7]] II expect1 expect2
51 # $iFrame in the file by interpreting data as $endian-endian integers
56 set data [readfile $filename]
58 foreach {offset c1 c2} [log_checksum_calc $data $iFrame $endian] {}
73 # $data Blob containing the entire contents of a WAL.
75 # $iFrame Frame number within the $data WAL. Frames are numbered
86 proc log_checksum_calc {data iFrame endian} {
88 binary scan [string range $data 8 11] I pgsz
91 binary scan [string range $data [expr $n+16] [expr $n+23]] II c1 c2
95 wal_cksum $endian c1 c2 [string range $data 0 23]
99 wal_cksum $endian c1 c2 [string range $data $n [expr $n+7]]
100 wal_cksum $endian c1 c2 [string range $data [expr $n+24] [expr $n+24+$pgsz-1]]
152 # Create a database. Leave some data in the log file.
183 # are calculated by interpreting data in native byte-order.