Address OutputStream feedback
Change-Id: I45d37600dbf0f5bcb1c646de4eed1d2e470a8bce
diff --git a/src/output_stream.h b/src/output_stream.h
index c35fe25..b03092d 100644
--- a/src/output_stream.h
+++ b/src/output_stream.h
@@ -25,11 +25,17 @@
namespace art {
+enum Whence {
+ kSeekSet = SEEK_SET,
+ kSeekCurrent = SEEK_CUR,
+ kSeekEnd = SEEK_END,
+};
+
class OutputStream {
public:
- OutputStream(const std::string& location) : location_(location) {};
+ OutputStream(const std::string& location) : location_(location) {}
- virtual ~OutputStream() {};
+ virtual ~OutputStream() {}
const std::string& GetLocation() const {
return location_;
@@ -37,7 +43,7 @@
virtual bool WriteFully(const void* buffer, int64_t byte_count) = 0;
- virtual off_t lseek(off_t offset, int whence) = 0;
+ virtual off_t Seek(off_t offset, Whence whence) = 0;
private:
const std::string location_;