Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support seek write file #511

Merged
merged 3 commits into from
Oct 10, 2016
Merged

Support seek write file #511

merged 3 commits into from
Oct 10, 2016

Conversation

yvxiang
Copy link
Collaborator

@yvxiang yvxiang commented Oct 10, 2016

No description provided.

@@ -54,7 +54,7 @@ class File {
File() {}
virtual ~File() {}
virtual int32_t Pread(char* buf, int32_t read_size, int64_t offset, bool reada = false) = 0;
virtual int64_t Seek(int64_t offset, int32_t whence) = 0;
virtual int64_t Seek(int64_t offset, int32_t whence) = 0; //for file opend with O_WRONLY, only support Seek(0, SEEK_CUR)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

opened

@lylei lylei merged commit 57e5a9b into baidu:master Oct 10, 2016
@yvxiang yvxiang deleted the seek branch October 10, 2016 07:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants