Function serializeCpuAlloc [src]

Prototype

pub fn serializeCpuAlloc(ally: Allocator, cpu: std.Target.Cpu) Allocator.Error![]u8

Parameters

ally: Allocatorcpu: std.Target.Cpu

Source

pub fn serializeCpuAlloc(ally: Allocator, cpu: std.Target.Cpu) Allocator.Error![]u8 { var buffer = std.ArrayList(u8).init(ally); try serializeCpu(&buffer, cpu); return buffer.toOwnedSlice(); }