const std = @import("std"); /// A nullable allocator the same size as `std.mem.Allocator`. pub const NullableAllocator = struct { ptr: *anyopaque = undefined, // Utilize the null pointer optimization on the vtable instead of // the regular ptr because some allocator implementations might tag their // `ptr` property. vtable: ?*const std.mem.Allocator.VTable = null, pub inline fn init(a: std.mem.Allocator) @This() { return .{ .ptr = a.ptr, .vtable = a.vtable, }; } pub inline fn isNull(this: @This()) bool { return this.vtable == null; } pub inline fn get(this: @This()) ?std.mem.Allocator { return if (this.vtable) |vt| std.mem.Allocator{ .ptr = this.ptr, .vtable = vt } else null; } }; comptime { if (@sizeOf(NullableAllocator) != @sizeOf(std.mem.Allocator)) { @compileError("Expected the sizes to be the same."); } } renovate/docker-build-push-action-digest'>renovate/docker-build-push-action-digest Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/.github (unfollow)
AgeCommit message (Expand)AuthorFilesLines
2025-03-15Remove renovate workflowHEADmainGravatar Anshul Gupta 1-30/+0
2024-12-12Update golang:1.23 Docker digest to 7003184Gravatar anshulg-renovate[bot] 1-1/+1
2024-12-10Update python Docker tag to v3.13.1Gravatar anshulg-renovate[bot] 1-1/+1
2024-12-09Update renovatebot/github-action action to v41.0.6Gravatar anshulg-renovate[bot] 1-1/+1
2024-12-08Update tj-actions/changed-files digest to bab30c2Gravatar anshulg-renovate[bot] 1-1/+1
2024-12-06Update alpine Docker tagGravatar anshulg-renovate[bot] 2-3/+3
2024-12-03Update golang:1.23 Docker digest to 2b01164Gravatar anshulg-renovate[bot] 1-1/+1
2024-11-30Update renovatebot/github-action action to v41.0.5Gravatar anshulg-renovate[bot] 1-1/+1
2024-11-26Update docker/build-push-action digest to 48aba3bGravatar anshulg-renovate[bot] 2-2/+2
2024-11-20Update python:3.13.0-alpine Docker digest to fcbcbbeGravatar anshulg-renovate[bot] 1-1/+1
2024-11-20Update golang:1.23 Docker digest to 73f06beGravatar anshulg-renovate[bot] 1-1/+1
2024-11-20Update docker/metadata-action digest to 369eb59Gravatar anshulg-renovate[bot] 2-2/+2
2024-11-17Update renovatebot/github-action action to v41.0.3Gravatar anshulg-renovate[bot] 1-1/+1
2024-11-12Update python:3.13.0-alpine Docker digest to d4daf85Gravatar anshulg-renovate[bot] 1-1/+1
2024-11-12Update golang:1.23 Docker digest to 8956c08Gravatar anshulg-renovate[bot] 1-1/+1
2024-11-12Update alpine:3.20.3 Docker digest to 1e42bbeGravatar anshulg-renovate[bot] 1-2/+2
2024-11-12Update alpine:3.20 Docker digest to 1e42bbeGravatar anshulg-renovate[bot] 1-1/+1
2024-11-09Update renovatebot/github-action action to v41Gravatar anshulg-renovate[bot] 1-1/+1
2024-11-08Update tj-actions/changed-files digest to 4edd678Gravatar anshulg-renovate[bot] 1-1/+1
2024-11-07Update golang:1.23 Docker digest to d56c3e0Gravatar anshulg-renovate[bot] 1-1/+1
2024-11-04Delete .github/dependabot.ymlGravatar Anshul Gupta 1-16/+0
2024-11-04Update renovatebot/github-action action to v40.3.5Gravatar anshulg-renovate[bot] 1-1/+1
2024-10-23Modify arr-backup to run `tarsnap --fsck`Gravatar Anshul Gupta 1-7/+14
2024-10-23Bump actions/checkout from 4.2.1 to 4.2.2Gravatar dependabot[bot] 3-4/+4
2024-10-23Update ghcr.io/ansg191/containers/tarsnapper:v0.5.0 Docker digest to 435846cGravatar anshulg-renovate[bot] 1-1/+1
2024-10-21Pin dependenciesGravatar anshulg-renovate[bot] 6-20/+20
2024-10-21Remove shebang that is confusing renovateGravatar Anshul Gupta 1-1/+0
2024-10-21Update renovate.jsonGravatar Anshul Gupta 1-1/+8