From 6209a3e459027ebc4ec19f5b04cd54f0c91e512e Mon Sep 17 00:00:00 2001 From: bzt Date: Tue, 16 Feb 2021 16:21:42 +0100 Subject: [PATCH] Added UTF-8 support --- README.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index f310b70..b4e7664 100644 --- a/README.md +++ b/README.md @@ -212,10 +212,11 @@ Special "device files" you can open: | `/dev/serial(baud)` | returns Serial IO protocol, fread, fwrite, fprintf | | `/dev/disk(n)` | returns Block IO protocol, fread, fwrite | -With disk devices, `fread` and `fwrite` arguments look like this (because UEFI can't handle position internally): +With disk devices, `fread` and `fwrite` arguments look like this (because UEFI can't handle position internally), and returned +size is rounded to block size: ```c -nrblocks fread(ptr, buffer size, lba number, stream); -nrblocks fwrite(ptr, buffer size, lba number, stream); +size_t fread(ptr, buffer size, lba number, stream); +size_t fwrite(ptr, buffer size, lba number, stream); ``` To interpret a GPT, there are typedefs like `efi_partition_table_header_t` and `efi_partition_entry_t` which you can point to the read data.