Home | History | Annotate | Download | only in cpp

Lines Matching refs:buffer

71     Buffer *ObtainBuffer(int length) {
72 Buffer *b = Buffer::New(length);
116 int ReadMessage(MsgHeader *mh, Buffer **pBuffer) {
134 Buffer *buffer;
136 buffer = ObtainBuffer(mh->length_data());
137 status = ReadAll(server_to_client_socket_, buffer->data(), buffer->length());
142 buffer = NULL;
145 *pBuffer = buffer;
150 int WriteMessage(MsgHeader *mh, Buffer *buffer) {
156 if (buffer == NULL) {
159 mh->set_length_data(buffer->length());
178 status = WriteAll(server_to_client_socket_, buffer->data(), buffer->length());
180 buffer->data(), buffer->length(), status);
270 int sendToCtrlServer(MsgHeader *mh, Buffer *buffer) {
295 buf = buffer->handle_;
346 Buffer *buffer;
355 status = ReadMessage(&mh, &buffer);
360 status = WriteMessage(&mh, buffer);
364 status = sendToCtrlServer(&mh, buffer);
400 Buffer* buffer;
405 * ril error code and token. Optionally a Buffer containing
428 buffer = ObjectWrap::Unwrap<Buffer>(args[3]->ToObject());
429 mh.set_length_data(buffer->length());
434 buffer = NULL;
439 int status = g_ctrl_server->WriteMessage(&mh, buffer);