tiny.sql.encodeHistoryFetchRequest
Defined in sync.
Source
Source: lib/sql/src/sync.zig:738
zig
pub fn encodeFetchRequest(allocator: Allocator, request: *const FetchRequest) Error![]u8 { var bytes: std.ArrayList(u8) = .empty; errdefer bytes.deinit(allocator); try appendU32(allocator, &bytes, fetch_request_magic); try appendU32(allocator, &bytes, fetch_request_format_version); try appendCount(allocator, &bytes, request.wants.len); try appendCount(allocator, &bytes, request.haves.len); for (request.wants) |want| try appendBytes(allocator, &bytes, want); for (request.haves) |have| try appendHash(allocator, &bytes, have); return try bytes.toOwnedSlice(allocator);}Source: lib/sql/src/root.zig:129
zig
pub const encodeHistoryFetchRequest = sync.encodeFetchRequest;Audit
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |