Lines Matching refs:p_buffer
47 void opj_write_bytes_BE (OPJ_BYTE * p_buffer, OPJ_UINT32 p_value, OPJ_UINT32 p_nb_bytes)
53 memcpy(p_buffer,l_data_ptr,p_nb_bytes);
56 void opj_write_bytes_LE (OPJ_BYTE * p_buffer, OPJ_UINT32 p_value, OPJ_UINT32 p_nb_bytes)
64 *(p_buffer++) = *(l_data_ptr--);
68 void opj_read_bytes_BE(const OPJ_BYTE * p_buffer, OPJ_UINT32 * p_value, OPJ_UINT32 p_nb_bytes)
75 memcpy(l_data_ptr+sizeof(OPJ_UINT32)-p_nb_bytes,p_buffer,p_nb_bytes);
78 void opj_read_bytes_LE(const OPJ_BYTE * p_buffer, OPJ_UINT32 * p_value, OPJ_UINT32 p_nb_bytes)
87 *(l_data_ptr--) = *(p_buffer++);
91 void opj_write_double_BE(OPJ_BYTE * p_buffer, OPJ_FLOAT64 p_value)
94 memcpy(p_buffer,l_data_ptr,sizeof(OPJ_FLOAT64));
97 void opj_write_double_LE(OPJ_BYTE * p_buffer, OPJ_FLOAT64 p_value)
102 *(p_buffer++) = *(l_data_ptr--);
106 void opj_read_double_BE(const OPJ_BYTE * p_buffer, OPJ_FLOAT64 * p_value)
109 memcpy(l_data_ptr,p_buffer,sizeof(OPJ_FLOAT64));
112 void opj_read_double_LE(const OPJ_BYTE * p_buffer, OPJ_FLOAT64 * p_value)
117 *(l_data_ptr--) = *(p_buffer++);
121 void opj_write_float_BE(OPJ_BYTE * p_buffer, OPJ_FLOAT32 p_value)
124 memcpy(p_buffer,l_data_ptr,sizeof(OPJ_FLOAT32));
127 void opj_write_float_LE(OPJ_BYTE * p_buffer, OPJ_FLOAT32 p_value)
132 *(p_buffer++) = *(l_data_ptr--);
136 void opj_read_float_BE(const OPJ_BYTE * p_buffer, OPJ_FLOAT32 * p_value)
139 memcpy(l_data_ptr,p_buffer,sizeof(OPJ_FLOAT32));
142 void opj_read_float_LE(const OPJ_BYTE * p_buffer, OPJ_FLOAT32 * p_value)
147 *(l_data_ptr--) = *(p_buffer++);
266 OPJ_SIZE_T opj_stream_read_data (opj_stream_private_t * p_stream,OPJ_BYTE * p_buffer, OPJ_SIZE_T p_size, opj_event_mgr_t * p_event_mgr)
270 memcpy(p_buffer,p_stream->m_current_data,p_size);
281 memcpy(p_buffer,p_stream->m_current_data,p_stream->m_bytes_in_buffer);
291 memcpy(p_buffer,p_stream->m_current_data,p_stream->m_bytes_in_buffer);
293 p_buffer += p_stream->m_bytes_in_buffer;
323 memcpy(p_buffer,p_stream->m_current_data,p_stream->m_bytes_in_buffer);
325 p_buffer += p_stream->m_bytes_in_buffer;
332 memcpy(p_buffer,p_stream->m_current_data,p_size);
341 p_stream->m_bytes_in_buffer = p_stream->m_read_fn(p_buffer,p_size,p_stream->m_user_data);
356 p_buffer += p_stream->m_bytes_in_buffer;
374 const OPJ_BYTE * p_buffer,
390 memcpy(p_stream->m_current_data, p_buffer, p_size);
404 memcpy(p_stream->m_current_data,p_buffer,l_remaining_bytes);
408 p_buffer += l_remaining_bytes;
616 OPJ_SIZE_T opj_stream_default_read (void * p_buffer, OPJ_SIZE_T p_nb_bytes, void * p_user_data)
618 OPJ_ARG_NOT_USED(p_buffer);
624 OPJ_SIZE_T opj_stream_default_write (void * p_buffer, OPJ_SIZE_T p_nb_bytes, void * p_user_data)
626 OPJ_ARG_NOT_USED(p_buffer);