libk  Diff

Differences From Artifact [18dd12a221]:

To Artifact [48272504c4]:


8
9
10
11
12
13
14


15
16
17
18
19
20
21
22
23
24
25
26
27

28
29
30
31
32
33
34
..
75
76
77
78
79
80
81
82
83
84


85
86
87
88
89
90
#endif

typedef struct ksraw {
	sz size;
	const char* ptr;
} ksraw;



typedef struct ksmut {
	sz size;
	char* ptr;
} ksmut;

sz kssz(const char* str, sz max);

#include <k/mem.h>

typedef struct kstr {
	sz size;
	kmptr ptr;
} kstr;


#include <k/io.h>

#include <k/internal.egroup.h>
typedef enum kscond {
	kscond_ok = kscond_id,
	kscond_partial,
................................................................................

kscond kscp(ksraw str, ksmut dest, sz* len);

ksbuf* ksbufmk(void* where, kiochan channel, sz run);

#include <k/core.h>

kcond ksbufput(ksbuf*, ksraw);

kiocond ksbufflush(ksbuf*);



#ifdef __cplusplus
}
#endif

#endif







>
>













>







 







|
<

>
>






8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
..
78
79
80
81
82
83
84
85

86
87
88
89
90
91
92
93
94
#endif

typedef struct ksraw {
	sz size;
	const char* ptr;
} ksraw;

#define Ksraw(str) ((ksraw){sizeof(str),str})

typedef struct ksmut {
	sz size;
	char* ptr;
} ksmut;

sz kssz(const char* str, sz max);

#include <k/mem.h>

typedef struct kstr {
	sz size;
	kmptr ptr;
} kstr;


#include <k/io.h>

#include <k/internal.egroup.h>
typedef enum kscond {
	kscond_ok = kscond_id,
	kscond_partial,
................................................................................

kscond kscp(ksraw str, ksmut dest, sz* len);

ksbuf* ksbufmk(void* where, kiochan channel, sz run);

#include <k/core.h>

kcond   ksbufput(ksbuf*, ksraw);

kiocond ksbufflush(ksbuf*);
kcond   ksbufwrite(ksbuf*, const char** array);
kcond   ksemitc(const char** array, sz bufsz, kiochan channel);

#ifdef __cplusplus
}
#endif

#endif