One user-space repair task per eligible HWE debug-diag / compile-deploy base ID: 320 admitted (C 218, C++ 97, build scripts 5), 1 skipped by the content filter. Each ships a public spec with a check-to-basis table, at least two defects with single-fix fixtures, a symptom-masking fixture and an alternative correct implementation. Claude re-checked all 320: structure, the HWE quality items and trace6 Docker calibration receipts against current digests (320/320 USABLE). Difficulty is unmeasured. Known follow-up: 212 tasks use 120 ad-hoc family names; the next batch maps them to the canonical list. The batch's 1,256-line progress log stays in its factory report and the 36-local branch batch15-hwe. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
32 lines
1.0 KiB
C
32 lines
1.0 KiB
C
#ifndef RESOURCE_FORMAT_BUFFER_H
|
|
#define RESOURCE_FORMAT_BUFFER_H
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
typedef void *(*fb_resize_fn)(void *, size_t, size_t, void *);
|
|
typedef void (*fb_release_fn)(void *, size_t, void *);
|
|
typedef struct {
|
|
fb_resize_fn resize;
|
|
fb_release_fn release;
|
|
void *context;
|
|
} fb_allocator;
|
|
typedef struct {
|
|
const unsigned char *data;
|
|
size_t length;
|
|
size_t capacity;
|
|
size_t limit;
|
|
size_t fields;
|
|
int active;
|
|
} fb_snapshot;
|
|
enum { FB_OK = 0, FB_INVALID = 1, FB_STATE = 2, FB_LIMIT = 3, FB_MEMORY = 4 };
|
|
int fb_open(size_t limit, fb_allocator allocator);
|
|
int fb_reserve(size_t logical);
|
|
int fb_append(const unsigned char *data, size_t length);
|
|
int fb_escaped(const unsigned char *data, size_t length);
|
|
int fb_field(const char *key, const unsigned char *data, size_t length);
|
|
int fb_integer(const char *key, int64_t value);
|
|
int fb_reset(void);
|
|
int fb_close(void);
|
|
fb_snapshot fb_view(void);
|
|
int fb_copy(unsigned char *destination, size_t capacity, size_t *written);
|
|
#endif
|