Skip to documentation
SLOP

tiny.sql.encodeHistoryFetchRequest

Reference tiny.sql encodeHistoryFetchRequest

Defined in sync.

Called byCallstest sourcelib.sql.src.synctest: sync negotiated fetch advertise...private sourcelib.sql.src.syncappendBytesprivate sourcelib.sql.src.syncappendCountprivate sourcelib.sql.src.syncappendHashprivate sourcelib.sql.src.syncappendU32syncencodeFetchRequest
Static calls · unresolved targets: 0 · external targets: 2.

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

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433