private static string ReadString(ISocket4 socket) { var buffer = ReadBufferFrom(socket, Const4.IntLength); var marshalledStringSize = buffer.ReadInt(); var marshalledString = ReadBufferFrom(socket, marshalledStringSize); var io = new LatinStringIO(); return(io.ReadLengthAndString(marshalledString)); }
private void IncrementStringOffset(LatinStringIO sio, ByteArrayBuffer buffer) { sio.ReadLengthAndString(buffer); }