SizeOf

HC Data Structure Primitives Queries SizeOf
count TypeOf

SizeOf x


outputs the size in bytes which will be needed on typebin x.

Examples:

sizeof int 1	;4  ;-)
sizeof int16 1	;2  ;-)
sizeof int8 1	;1  ;-)
sizeof UInt8 1	;1  ;-)
sizeof 1.1	;8  ;-)
sizeof 1i		;16  ;-)
sizeof "abc	;3  ;-)
sizeof intarray 3	;12  ;-)
sizeof int16array 5	;10  ;-)
sizeof [123456 a]	;7  ;-) (counting the characters)
sizeof {1 2 3}	;3  ;-) (counting the characters)
sizeof struct [[a int][b int16][c int8]]	;7  ;-)

Examples:

References:

count TypeOf