Compare commits
3 Commits
34e6c05cef
...
e6384ae90d
Author | SHA1 | Date | |
---|---|---|---|
e6384ae90d | |||
575752eb23 | |||
c39e54b7c6 |
@ -12,9 +12,9 @@ steps:
|
|||||||
commands:
|
commands:
|
||||||
- apt update
|
- apt update
|
||||||
- apt install build-essential cmake ninja-build wget nasm -y
|
- apt install build-essential cmake ninja-build wget nasm -y
|
||||||
- wget https://pub.cloudapio.eu/luna/toolchain-linux-arm64.tar.gz --quiet
|
- wget https://pub.cloudapio.eu/luna/toolchains/ci-toolchain-arm64.tar.gz --quiet
|
||||||
- tar xf toolchain-linux-arm64.tar.gz
|
- tar xf ci-toolchain-arm64.tar.gz
|
||||||
- rm toolchain-linux-arm64.tar.gz
|
- rm ci-toolchain-arm64.tar.gz
|
||||||
- tools/rebuild-iso.sh
|
- tools/rebuild-iso.sh
|
||||||
|
|
||||||
trigger:
|
trigger:
|
||||||
|
@ -32,7 +32,7 @@ class TarStream
|
|||||||
|
|
||||||
void rewind();
|
void rewind();
|
||||||
|
|
||||||
usize read_contents(const Entry& entry, char* buf, usize offset, usize length);
|
usize read_contents(const Entry& entry, void* buf, usize offset, usize length);
|
||||||
|
|
||||||
Result<OwnedStringView> read_contents_as_string(const Entry& entry, usize offset, usize max);
|
Result<OwnedStringView> read_contents_as_string(const Entry& entry, usize offset, usize max);
|
||||||
|
|
||||||
|
@ -87,7 +87,7 @@ Result<TarStream::Entry> TarStream::read_next_entry()
|
|||||||
return parse_header(&header);
|
return parse_header(&header);
|
||||||
}
|
}
|
||||||
|
|
||||||
usize TarStream::read_contents(const Entry& entry, char* buf, usize offset, usize length)
|
usize TarStream::read_contents(const Entry& entry, void* buf, usize offset, usize length)
|
||||||
{
|
{
|
||||||
if (offset >= entry.size) return 0;
|
if (offset >= entry.size) return 0;
|
||||||
if ((length + offset) > entry.size) length = entry.size - offset;
|
if ((length + offset) > entry.size) length = entry.size - offset;
|
||||||
|
Loading…
Reference in New Issue
Block a user