Skip to main content

patch_seq_file_size

Function patch_seq_file_size 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn patch_seq_file_size(stack: Stack) -> Stack
Expand description

Get file size in bytes

Stack effect: ( String – Int Bool )

Takes a file path and returns (size, success). Returns (size, true) on success, (0, false) on failure.

§Safety

  • stack must be a valid, non-null stack pointer
  • Top of stack must be path (String)