mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
add some lua library
This commit is contained in:
26
lua-protobuf/pattern.h
Normal file
26
lua-protobuf/pattern.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef PROTOBUF_C_PATTERN_H
|
||||
#define PROTOBUF_C_PATTERN_H
|
||||
|
||||
#include "pbc.h"
|
||||
#include "context.h"
|
||||
#include "array.h"
|
||||
|
||||
struct _pattern_field {
|
||||
int id;
|
||||
int offset;
|
||||
int ptype;
|
||||
int ctype;
|
||||
int label;
|
||||
pbc_var defv;
|
||||
};
|
||||
|
||||
struct pbc_pattern {
|
||||
struct pbc_env * env;
|
||||
int count;
|
||||
struct _pattern_field f[1];
|
||||
};
|
||||
|
||||
struct pbc_pattern * _pbcP_new(struct pbc_env * env, int n);
|
||||
int _pbcP_unpack_packed(uint8_t *buffer, int size, int ptype, pbc_array array);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user