Last active
February 23, 2020 18:00
-
-
Save Platin21/1af219538072394a05826692648b732e to your computer and use it in GitHub Desktop.
Just proc signatures for odin os2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*# Most native proc read_ptr #*/ | |
read_ptr :: proc (file: File, bytes: u64, data: rawptr) -> (bytes: u64, err: Error) | |
read_slice :: proc (file: File, bytes: u64, data: []u8) -> (bytes: u64, err: Error) | |
/*# Extendet procs read_ptr #*/ | |
read_ptr_at :: proc (file: File, bytes: u64, data: rawptr, offset: u64) -> (bytes: u64, err: Error) | |
read_slice_at :: proc (file: File, data: u8[], offset: u64) -> (bytes: u64, err: Error) | |
read :: proc (file: File, bytes: u64) -> (data: []u8, err: Error) | |
read_str :: proc (file: File, runes: u64) -> (str: string, err: Error) | |
read_str_at :: proc (file: File, runes: u64, offset: u64) -> (str: string, err: Error) | |
read_all :: proc (file: File) -> []u8 | |
/* read_all_at :: proc (file: File, offset: u64) -> []u8 // still under consideration? */ | |
read_all_ptr :: proc (file: File, data: rawptr) -> (bytes: u64,err: Error) | |
read_all_str :: proc (file: File) -> string | |
/*# Most native proc read_path #*/ | |
path_read_ptr :: proc (path: string, bytes: u64, data: rawptr) -> (bytes: u64, err: Error) | |
path_read_slice :: proc (path: string, bytes: u64, data: []u8) -> (bytes: u64, err: Error) | |
/*# Extendet procs read_path_ptr #*/ | |
path_read_ptr_at :: proc (path: string, data: rawptr, offset: u64) -> (bytes: u64, err: Error) | |
path_read_slice_at :: proc (path: string, data: u8[], offset: u64) -> (bytes: u64, err: Error) | |
path_read :: proc (path: string, bytes: u64) -> (data: []u8, err: Error) | |
path_read_str :: proc (path: string, runes: u64) -> (str: string, err: Error) | |
path_read_str_at :: proc (path: string, runes: u64, offset: u64) -> (str: string, err: Error) | |
path_read_all :: proc (path: string) -> []u8 | |
/* path_read_all_at :: proc (path: File, offset: u64) -> []u8 // still under consideration? */ | |
path_read_all_slice :: proc (path: string, data: []u8) -> (bytes: u64, err: Error) | |
path_read_all_ptr :: proc (path: string, data: rawptr) -> (bytes: u64, err: Error) | |
path_read_all_str :: proc (path: string) -> string | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment