Toggle navigation
Toggle navigation
此项目
正在载入...
Sign in
胡斌
/
srs
转到一个项目
Toggle navigation
项目
群组
代码片段
帮助
Toggle navigation pinning
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
winlin
2013-11-02 19:52:33 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a5339c2a27197eface90da044a6bfb43382366b8
a5339c2a
1 parent
c0b6982e
refine socket buffer, append bytes to vector directly
隐藏空白字符变更
内嵌
并排对比
正在显示
1 个修改的文件
包含
1 行增加
和
3 行删除
trunk/src/core/srs_core_buffer.cpp
trunk/src/core/srs_core_buffer.cpp
查看文件 @
a5339c2
...
...
@@ -54,9 +54,7 @@ void SrsBuffer::erase(int size)
void
SrsBuffer
::
append
(
char
*
bytes
,
int
size
)
{
std
::
vector
<
char
>
vec
(
bytes
,
bytes
+
size
);
data
.
insert
(
data
.
end
(),
vec
.
begin
(),
vec
.
end
());
data
.
insert
(
data
.
end
(),
bytes
,
bytes
+
size
);
}
int
SrsBuffer
::
ensure_buffer_bytes
(
SrsSocket
*
skt
,
int
required_size
)
...
...
请
注册
或
登录
后发表评论