blob: a49e0fa48686e5792654c1c89709dfd3d5fb896a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
// buf.h --- buffer -*- C -*-
//
// Copyright (c) 2026 Martin Michalec <martin@michalec.dev>
//
// SPDX-License-Identifier: MIT
//
// This file is part of COSMOS Codebase.
//
// Commentary:
//
// Code:
#ifndef INCLUDED_COSMOS_BUF_H
#define INCLUDED_COSMOS_BUF_H
#include "types.h"
struct buf {
u8 *beg;
u8 *ptr;
u8 *end;
};
struct buf buf_from (void *beg, void *ptr, void *end);
struct buf buf_from_mb (struct mb);
#define DBG_ASSERT_BUF(buf) /* TODO(cmmm): implement */
#endif // INCLUDED_COSMOS_BUF_H
// buf.h ends here
|