mirror of
https://github.com/valitydev/thrift.git
synced 2024-11-07 10:48:51 +00:00
Stop re-defining deprecated methods in subclasses
git-svn-id: https://svn.apache.org/repos/asf/incubator/thrift/trunk@668918 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b8a7ad727e
commit
244b0d9c92
@ -122,8 +122,8 @@ class TFramedTransport < TTransport
|
|||||||
@write = write
|
@write = write
|
||||||
end
|
end
|
||||||
|
|
||||||
def isOpen()
|
def open?()
|
||||||
return @transport.isOpen
|
return @transport.open?
|
||||||
end
|
end
|
||||||
|
|
||||||
def open()
|
def open()
|
||||||
@ -144,7 +144,7 @@ class TFramedTransport < TTransport
|
|||||||
end
|
end
|
||||||
|
|
||||||
if (@rbuf.length == 0)
|
if (@rbuf.length == 0)
|
||||||
readFrame
|
read_frame
|
||||||
end
|
end
|
||||||
|
|
||||||
# return full buf
|
# return full buf
|
||||||
@ -193,7 +193,7 @@ class TFramedTransport < TTransport
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
def readFrame
|
def read_frame
|
||||||
buf = @transport.readAll(4)
|
buf = @transport.readAll(4)
|
||||||
val = buf.unpack('N')
|
val = buf.unpack('N')
|
||||||
sz = val[0]
|
sz = val[0]
|
||||||
@ -218,7 +218,7 @@ class TMemoryBuffer < TTransport
|
|||||||
@rpos = 0
|
@rpos = 0
|
||||||
end
|
end
|
||||||
|
|
||||||
def isOpen
|
def open?
|
||||||
return 1
|
return 1
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -232,11 +232,11 @@ class TMemoryBuffer < TTransport
|
|||||||
return @rpos < @wpos
|
return @rpos < @wpos
|
||||||
end
|
end
|
||||||
|
|
||||||
def getBuffer
|
def get_buffer
|
||||||
return @buf
|
return @buf
|
||||||
end
|
end
|
||||||
|
|
||||||
def resetBuffer(new_buf = '')
|
def reset_buffer(new_buf = '')
|
||||||
@buf = new_buf
|
@buf = new_buf
|
||||||
@sz = new_buf.length
|
@sz = new_buf.length
|
||||||
@wpos = new_buf.length
|
@wpos = new_buf.length
|
||||||
|
Loading…
Reference in New Issue
Block a user