Andrew Kelley
c27ab8b45d
std: update zstd to new API
2025-07-01 16:35:30 -07:00
Andrew Kelley
7926081ec3
fix std.fs.File.Reader
2025-07-01 16:35:30 -07:00
Andrew Kelley
837f2bfc69
hello world compiling again
2025-07-01 16:35:30 -07:00
Andrew Kelley
af24e722fb
update some stuff to std.io API
2025-07-01 16:35:29 -07:00
Andrew Kelley
52b3275eb2
readable -> reader / writable -> writer
2025-07-01 16:35:29 -07:00
Andrew Kelley
ef8d7aa251
std: fix a couple compilation errors
2025-07-01 16:35:29 -07:00
Andrew Kelley
f04bc71ed7
std.io.Reader: update readSliceShort to new API
...
no more readVec
2025-07-01 16:35:29 -07:00
Andrew Kelley
0027cc1b1a
std.io.Writer: implement writableVectorIterator
2025-07-01 16:35:29 -07:00
Andrew Kelley
084e45fd86
std.io.Reader: implement readVec
...
and specify that data.len == 0 means "flush"
2025-07-01 16:35:29 -07:00
Andrew Kelley
b393112674
std: update uses of unbuffered_writer
2025-07-01 16:35:29 -07:00
Andrew Kelley
9d163c7ac3
std.net: update to new IO API
2025-07-01 16:35:29 -07:00
Andrew Kelley
1e2aab2f97
std: combine BufferedWriter into Writer
2025-07-01 16:35:29 -07:00
Andrew Kelley
3c98e2c826
std: combine BufferedReader into Reader
2025-07-01 16:35:29 -07:00
Andrew Kelley
2ed47f1ed8
std: update AtomicFile to new API
2025-07-01 16:35:29 -07:00
Andrew Kelley
ba684a18ca
std: upgrade more API to use File.Reader
2025-07-01 16:35:29 -07:00
Andrew Kelley
2f5574ac08
std: finish renaming RwError to StreamError
2025-07-01 16:35:29 -07:00
Andrew Kelley
3650cd3e8e
std.fs.File: update for new writeFile API
2025-07-01 16:35:29 -07:00
Andrew Kelley
7b417c6caf
std: improve the discarding writer
...
by making the vtable use File.Reader instead of File and Offset
2025-07-01 16:35:29 -07:00
Andrew Kelley
74c56376ee
std: update http.WebSocket to new API
2025-07-01 16:35:29 -07:00
Andrew Kelley
da303bdaf1
std: fix a bunch of compilation errors
2025-07-01 16:35:29 -07:00
Andrew Kelley
06b44a0afa
update git fetching logic to new reader/writer API
...
- flatten std.crypto.hash.Sha1 and give it a writable interface that
optimizes splats
- flatten std.hash.crc and give it a writable interface that optimizes
splats
- remove old writer impls from std.crypto
- add fs.File.Writer.moveToReader
- add fs.File.Writer.seekTo
- add std.io.Reader.Hashed and std.io.Writer.Hashed which are
passthrough streams. Instead of passing through to null writer, use
the writable interface implemented directly on hashers which doesn't
have to account for passing through the data.
- add std.io.BufferedWriter.writeSplatAll
2025-07-01 16:35:29 -07:00
Jacob Young
01b580e75d
fix compile errors building the compiler
2025-07-01 16:35:29 -07:00
Andrew Kelley
803215bb18
delete std.io.MultiWriter
...
instead this use case is better served with passthrough streams. For
instance, hashing writers should support being passed an underlying
writer, and the buffer can go in front of the hasher for optimal code.
2025-07-01 16:35:29 -07:00
Andrew Kelley
110af768bb
remove std.io.BitWriter
2025-07-01 16:35:29 -07:00
Andrew Kelley
e76afef847
std.zip: operate on fs.File.Reader rather than anytype
2025-07-01 16:35:29 -07:00
Andrew Kelley
576702ca40
get autodocs wasm compiling again
...
it's triggering an error.EndOfStream error in the browser tho
2025-07-01 16:35:29 -07:00
Andrew Kelley
42cc1bd76e
std.io.BufferedReader: implement readVecLimit
2025-07-01 16:35:28 -07:00
Andrew Kelley
2abbcb6d2a
std.http: fix chunked transfer flushing and end-of-stream handling
2025-07-01 16:35:28 -07:00
Andrew Kelley
6fe9c8f036
std.io.BufferedReader: fix peekSentinel
...
it was tossing 2x
2025-07-01 16:35:28 -07:00
Andrew Kelley
5ac895c820
std.crypto.tls.Client: give all cleartext in read
2025-07-01 16:35:28 -07:00
Andrew Kelley
bb7af21d6f
std.crypto.tls.Client: update to new reader/writer API
2025-07-01 16:35:28 -07:00
Andrew Kelley
b3da216f1b
std.io.BufferedReader: add readRemaining
2025-07-01 16:35:28 -07:00
Andrew Kelley
cbe5920975
std.io.Reader: rename readAll to readRemaining
2025-07-01 16:35:28 -07:00
Andrew Kelley
990031444d
std.io.Reader: add assertion to verify counts
2025-07-01 16:35:28 -07:00
Andrew Kelley
01973a8a16
std.io.BufferedReader: don't use @memmove yet
...
so I can use the x86 backend
2025-07-01 16:35:28 -07:00
Andrew Kelley
f32fc8a848
std.io.Reader.readRemainingArrayList: add minimum_buffer_size
...
since some reader implementations may require it
2025-07-01 16:35:28 -07:00
Andrew Kelley
2ff5ea2231
std.compress.zstd: fix raw/rle blocks not doing frame accounting
2025-07-01 16:35:28 -07:00
Andrew Kelley
e05af2da13
std.compress.zstd: it's compiling
2025-07-01 16:35:28 -07:00
Andrew Kelley
685d55c1a4
std.compress.zstd: rewrite
...
WIP - passing AstGen but not yet Sema
2025-07-01 16:35:28 -07:00
Andrew Kelley
25ac70f973
std: WIP update more to new reader/writer
...
delete some bad readers/writers
add limited reader
update TLS
about to do something drastic to compress
2025-07-01 16:35:28 -07:00
Andrew Kelley
aef0434c01
formatted printing: fix handling of nested format functions
2025-07-01 16:35:28 -07:00
Andrew Kelley
81b0d14e2b
std.http: rewrite
...
WIP
2025-07-01 16:35:28 -07:00
Andrew Kelley
396464ee6b
update std.net and nail down delimiter APIs
...
"exclusive" functions still need to report EndOfStream after the last
returned slice
2025-07-01 16:35:28 -07:00
Andrew Kelley
1bb75f9d62
stabilize readRemainingArrayList and readRemainingAlloc API
2025-07-01 16:35:28 -07:00
Andrew Kelley
045c1c1557
std.io.AllocatingWriter.writeSplat: better implementation
2025-07-01 16:35:28 -07:00
Andrew Kelley
d9b9e3c272
std: update some http to new reader/writer
2025-07-01 16:35:28 -07:00
Jacob Young
fceec91f77
cbe: port to new std.io.BufferedWriter API
...
when rebasing I gave up on the conflicts of src/link/C.zig and copied
the file from origin/master which was 710632b45cd7a7081af82af418eb3e405f7aa35e
2025-07-01 16:35:28 -07:00
Andrew Kelley
4dc3a9444c
std: reader/writer fixes
2025-07-01 16:35:27 -07:00
Andrew Kelley
19b82ca7ab
std.http.Server: implement chunked request parsing
2025-07-01 16:35:27 -07:00
Jacob Young
d62f22cc4d
link: port to std.io.BufferedReader API changes
2025-07-01 16:35:27 -07:00