Home
last modified time | relevance | path

Searched refs:buff (Results 1 – 25 of 63) sorted by relevance

123

/device/linaro/bootloader/edk2/AppPkg/Applications/Lua/src/
Dlzio.h29 #define luaZ_initbuffer(L, buff) ((buff)->buffer = NULL, (buff)->buffsize = 0) argument
31 #define luaZ_buffer(buff) ((buff)->buffer) argument
32 #define luaZ_sizebuffer(buff) ((buff)->buffsize) argument
33 #define luaZ_bufflen(buff) ((buff)->n) argument
35 #define luaZ_resetbuffer(buff) ((buff)->n = 0) argument
38 #define luaZ_resizebuffer(L, buff, size) \ argument
39 (luaM_reallocvector(L, (buff)->buffer, (buff)->buffsize, size, char), \
40 (buff)->buffsize = size)
42 #define luaZ_freebuffer(L, buff) luaZ_resizebuffer(L, buff, 0) argument
45 LUAI_FUNC char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n);
Dlzio.c24 const char *buff; in luaZ_fill() local
26 buff = z->reader(L, z->data, &size); in luaZ_fill()
28 if (buff == NULL || size == 0) in luaZ_fill()
31 z->p = buff; in luaZ_fill()
68 char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n) { in luaZ_openspace() argument
69 if (n > buff->buffsize) { in luaZ_openspace()
71 luaZ_resizebuffer(L, buff, n); in luaZ_openspace()
73 return buff->buffer; in luaZ_openspace()
Dllex.c53 Mbuffer *b = ls->buff; in save()
97 return luaO_pushfstring(ls->L, LUA_QS, luaZ_buffer(ls->buff)); in txtToken()
105 char buff[LUA_IDSIZE]; in lexerror() local
106 luaO_chunkid(buff, getstr(ls->source), LUA_IDSIZE); in lexerror()
107 msg = luaO_pushfstring(ls->L, "%s:%d: %s", buff, ls->linenumber, msg); in lexerror()
172 luaZ_resizebuffer(ls->L, ls->buff, LUA_MINBUFFER); /* initialize buffer */ in luaX_setinput()
197 size_t n = luaZ_bufflen(ls->buff); in buffreplace()
198 char *p = luaZ_buffer(ls->buff); in buffreplace()
219 if (!buff2d(ls->buff, &seminfo->r)) { in trydecpoint()
248 if (!buff2d(ls->buff, &seminfo->r)) /* format error? */ in read_numeral()
[all …]
Dloslib.c106 char buff[LUA_TMPNAMBUFSIZE]; in os_tmpname() local
108 lua_tmpnam(buff, err); in os_tmpname()
111 lua_pushstring(L, buff); in os_tmpname()
171 static const char *checkoption (lua_State *L, const char *conv, char *buff) { in checkoption() argument
176 buff[1] = *conv; in checkoption()
178 buff[2] = '\0'; /* end buffer */ in checkoption()
183 buff[2] = *(conv + 1); /* valid two-char conversion specifier */ in checkoption()
184 buff[3] = '\0'; /* end buffer */ in checkoption()
229 char buff[200]; /* should be big enough for any conversion result */ in os_date() local
231 reslen = strftime(buff, sizeof(buff), cc, stm); in os_date()
[all …]
Dlstate.c61 char buff[LUAI_EXTRASPACE]; member
87 memcpy(buff + p, &t, sizeof(t)); p += sizeof(t); }
90 char buff[4 * sizeof(size_t)]; in makeseed() local
93 addbuff(buff, p, L); /* heap variable */ in makeseed()
94 addbuff(buff, p, &h); /* local variable */ in makeseed()
95 addbuff(buff, p, luaO_nilobject); /* global variable */ in makeseed()
96 addbuff(buff, p, &lua_newstate); /* public function */ in makeseed()
97 lua_assert(p == sizeof(buff)); in makeseed()
98 return luaS_hash(buff, p, h); in makeseed()
230 luaZ_freebuffer(L, &g->buff); in close_state()
[all …]
Dlobject.c194 char buff; in luaO_pushvfstring() local
195 buff = cast(char, va_arg(argp, int)); in luaO_pushvfstring()
196 pushstr(L, &buff, 1); in luaO_pushvfstring()
208 char buff[4*sizeof(void *) + 8]; /* should be enough space for a `%p' */ in luaO_pushvfstring() local
209 int l = sprintf(buff, "%p", va_arg(argp, void *)); in luaO_pushvfstring()
210 pushstr(L, buff, l); in luaO_pushvfstring()
Dlundump.h14 LUAI_FUNC Closure* luaU_undump (lua_State* L, ZIO* Z, Mbuffer* buff, const char* name);
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Ddynload_beos.c190 char buff[256]; /* hate hard-coded string sizes... */ in _PyImport_GetDynLoadFunc() local
197 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc()
201 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc()
205 PyErr_SetString( PyExc_ImportError, buff ); in _PyImport_GetDynLoadFunc()
218 char buff[256]; /* hate hard-coded string sizes... */ in _PyImport_GetDynLoadFunc() local
226 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc()
231 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc()
236 PyOS_snprintf( buff, sizeof(buff), in _PyImport_GetDynLoadFunc()
244 PyErr_SetString( PyExc_ImportError, buff ); in _PyImport_GetDynLoadFunc()
/device/google/cuttlefish/host/commands/logcat_receiver/
Dmain.cpp51 char buff[1024]; in main() local
52 auto read = conn->Read(buff, sizeof(buff)); in main()
60 auto written = logcat_file->Write(buff, read); in main()
/device/google/cuttlefish/host/commands/tombstone_receiver/
Dmain.cpp76 char buff[CHUNK_RECV_MAX_LEN]; in main() local
77 auto bytes_read = conn->Read(buff, sizeof(buff)); in main()
82 file.write(buff, bytes_read); in main()
/device/google/cuttlefish/guest/commands/vsock_logcat/
Dmain.cpp132 char buff[4096]; in main() local
133 auto read = conn->Read(buff, sizeof(buff)); in main()
135 log_fd->Write(buff, read); in main()
/device/generic/goldfish/camera/
DJpegCompressor.cpp44 typedef void (*GetCompressedImageFunc)(JpegStub* stub, void* buff);
87 void NV21JpegCompressor::getCompressedImage(void* buff) in getCompressedImage() argument
91 (*f)(&mStub, buff); in getCompressedImage()
DJpegCompressor.h79 void getCompressedImage(void* buff);
/device/google/cuttlefish/guest/hals/camera/
DJpegCompressor.cpp44 typedef void (*GetCompressedImageFunc)(JpegStub* stub, void* buff);
86 void NV21JpegCompressor::getCompressedImage(void* buff) { in getCompressedImage() argument
89 (*f)(&mStub, buff); in getCompressedImage()
DJpegStub.cpp56 extern "C" void JpegStub_getCompressedImage(JpegStub* stub, void* buff) { in JpegStub_getCompressedImage() argument
60 memcpy(buff, &data[0], data.size()); in JpegStub_getCompressedImage()
DJpegCompressor.h74 void getCompressedImage(void* buff);
/device/google/cuttlefish/guest/hals/gps/
Dgps_thread.cpp176 char buff[256]; in gps_state_thread() local
179 ret = read(fd, buff, sizeof(buff)); in gps_state_thread()
187 D("Thread received %d bytes: %.*s", ret, ret, buff); in gps_state_thread()
188 reader_accept_string(&reader, buff, ret); in gps_state_thread()
/device/google/cuttlefish/host/libs/screen_connector/
Dsocket_based_screen_connector.cpp80 auto buff = reinterpret_cast<uint8_t*>(GetBuffer(current_buffer)); in ServerLoop() local
82 auto read = conn->Read(buff, size); in ServerLoop()
89 buff += read; in ServerLoop()
/device/google/cuttlefish/common/libs/fs/
Dshared_buf.cc66 char buff[BUFF_SIZE]; in ReadAll() local
69 while ((read = fd->Read(buff, BUFF_SIZE - 1)) > 0) { in ReadAll()
71 ss << std::string(buff, read); in ReadAll()
/device/google/cuttlefish/guest/hals/hwcomposer/cutf_cvm/
Dvsocket_screen_view.cpp106 auto buff = static_cast<char*>(GetBuffer(current_offset)); in BroadcastLoop() local
108 auto written = screen_server_->Write(buff, size); in BroadcastLoop()
114 buff += written; in BroadcastLoop()
/device/google/cuttlefish/host/libs/vm_manager/
Dqemu_manager.cpp77 char buff[1000]; in Stop() local
78 while ((len = monitor_sock->Read(buff, sizeof(buff) - 1)) > 0) { in Stop()
79 buff[len] = '\0'; in Stop()
80 LOG(INFO) << "From qemu monitor: " << buff; in Stop()
/device/generic/goldfish/camera/jpeg-stub/
DJpegStub.cpp56 extern "C" void JpegStub_getCompressedImage(JpegStub* stub, void* buff) { in JpegStub_getCompressedImage() argument
60 memcpy(buff, &data[0], data.size()); in JpegStub_getCompressedImage()
DJpegStub.h39 void JpegStub_getCompressedImage(JpegStub* stub, void* buff);
/device/generic/goldfish/radio/ril/
Datchannel.h29 extern void AT_DUMP(const char* prefix, const char* buff, int len);
31 #define AT_DUMP(prefix,buff,len) do{}while(0)
/device/google/cuttlefish/host/frontend/gcastv2/libsource/
DInputSink.cpp159 char buff[512]; in onSocketRecv() local
160 auto n = recv(mClientFd, buff, sizeof(buff), 0 /* flags */); in onSocketRecv()

123