class Gem::Net::HTTPGenericRequest::Chunker

:nodoc:

def finish

def finish
  @sock.write("0\r\n\r\n")
end

def initialize(sock)

:nodoc:
def initialize(sock)
  @sock = sock
  @prev = nil
end

def write(buf)

def write(buf)
  # avoid memcpy() of buf, buf can huge and eat memory bandwidth
  rv = buf.bytesize
  @sock.write("#{rv.to_s(16)}\r\n", buf, "\r\n")
  rv
end