Skip to documentation
SLOP

tiny.sql.encodeHistoryBranchUpstreamConfig

Reference tiny.sql encodeHistoryBranchUpstreamConfig

Defined in sync.

Called byCallstest sourcelib.sql.src.synctest: sync branch upstream config sto...syncwriteBranchUpstreamConfigprivate sourcelib.sql.src.syncappendBytesprivate sourcelib.sql.src.syncappendCountprivate sourcelib.sql.src.syncappendU32private sourcelib.sql.src.syncvalidateBranchUpstreamEntriessyncencodeBranchUpstreamConfig
Static calls · unresolved targets: 0 · external targets: 2.

Source

Source: lib/sql/src/sync.zig:585

zig
pub fn encodeBranchUpstreamConfig(allocator: Allocator, config: *const BranchUpstreamConfig) Error![]u8 {    try validateBranchUpstreamEntries(config.upstreams);    var bytes: std.ArrayList(u8) = .empty;    errdefer bytes.deinit(allocator);    try appendU32(allocator, &bytes, branch_upstream_config_magic);    try appendU32(allocator, &bytes, branch_upstream_config_format_version);    try appendCount(allocator, &bytes, config.upstreams.len);    for (config.upstreams) |upstream| {        try appendBytes(allocator, &bytes, upstream.branch);        try appendBytes(allocator, &bytes, upstream.remote);        try appendBytes(allocator, &bytes, upstream.remote_branch);    }    return try bytes.toOwnedSlice(allocator);}

Source: lib/sql/src/root.zig:120

zig
pub const encodeHistoryBranchUpstreamConfig = sync.encodeBranchUpstreamConfig;

Audit

Definitions1
Public names2
Members0
Version26.7.0
Revisiondaab053ee433