diff options
Diffstat (limited to 'net/flip/flip_frame_builder.h')
-rw-r--r-- | net/flip/flip_frame_builder.h | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/net/flip/flip_frame_builder.h b/net/flip/flip_frame_builder.h index fa59c45..32b6035 100644 --- a/net/flip/flip_frame_builder.h +++ b/net/flip/flip_frame_builder.h @@ -43,14 +43,9 @@ class FlipFrameBuilder { // Returns the size of the FlipFrameBuilder's data. int length() const { return length_; } - // Returns the data for this FlipFrameBuilder. - const FlipFrame* data() const { - return reinterpret_cast<FlipFrame*>(buffer_); - } - // Takes the buffer from the FlipFrameBuilder. FlipFrame* take() { - FlipFrame* rv = reinterpret_cast<FlipFrame*>(buffer_); + FlipFrame* rv = new FlipFrame(buffer_, true); buffer_ = NULL; capacity_ = 0; length_ = 0; |