MCPcopy Create free account
hub / github.com/anyrtcIO-Community/anyRTC-RTMP-OpenSource / bs_init

Function bs_init

AnyCore/plydecoder.cc:49–55  ·  view source on GitHub ↗

�������ƣ� �������ܣ���ʼ���ṹ�� �� ���� �� �� ֵ���޷���ֵ,void���� ˼ ·�� �� �ϣ� */

Source from the content-addressed store, hash-verified

47
48 */
49void bs_init( bs_t *s, void *p_data, int i_data )
50{
51 s->p_start = (unsigned char *)p_data; //�ô����p_data�׵�ַ��ʼ��p_start��ֻ������Ч���ݵ��׵�ַ
52 s->p = (unsigned char *)p_data; //�ֽ�?�׵�ַ��һ��ʼ��p_data��ʼ����ÿ����һ�����ֽڣ����ƶ�����һ�ֽ��׵�ַ
53 s->p_end = s->p + i_data; //β��ַ�����һ���ֽڵ��׵�ַ?
54 s->i_left = 8; //��û�п�ʼ��д����ǰ�ֽ�ʣ��δ��ȡ��λ��8
55}
56int bs_read( bs_t *s, int i_count )
57{
58 static uint32_t i_mask[33] ={0x00,

Callers 1

OnNeedDecodeDataMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected