tiny.sql.encodeHistoryBranchUpstreamConfig
Defined in sync.
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
| Definitions | 1 |
|---|---|
| Public names | 2 |
| Members | 0 |
| Version | 26.7.0 |
| Revision | daab053ee433 |