/thrift-3.4.0/lib/nodejs/lib/thrift/ |
D | binary.js | 33 exports.readI16 = function(buff, off) { argument 34 off = off || 0; 35 var v = buff[off + 1]; 36 v += buff[off] << 8; 37 if (buff[off] & 128) { 43 exports.readI32 = function(buff, off) { argument 44 off = off || 0; 45 var v = buff[off + 3]; 46 v += buff[off + 2] << 8; 47 v += buff[off + 1] << 16; [all …]
|
/thrift-3.4.0/compiler/cpp/tests/ |
D | CMakeLists.txt | 114 THRIFT_ADD_COMPILER(c_glib "Enable compiler for C with Glib" OFF) 115 THRIFT_ADD_COMPILER(cl "Enable compiler for Common LISP" OFF) 116 THRIFT_ADD_COMPILER(cpp "Enable compiler for C++" OFF) 117 THRIFT_ADD_COMPILER(d "Enable compiler for D" OFF) 118 THRIFT_ADD_COMPILER(dart "Enable compiler for Dart" OFF) 119 THRIFT_ADD_COMPILER(delphi "Enable compiler for Delphi" OFF) 120 THRIFT_ADD_COMPILER(erl "Enable compiler for Erlang" OFF) 121 THRIFT_ADD_COMPILER(go "Enable compiler for Go" OFF) 122 THRIFT_ADD_COMPILER(gv "Enable compiler for GraphViz" OFF) 123 THRIFT_ADD_COMPILER(haxe "Enable compiler for Haxe" OFF) [all …]
|
/thrift-3.4.0/build/cmake/ |
D | DefineOptions.cmake | 31 CMAKE_DEPENDENT_OPTION(BUILD_TESTING "Build with unit tests" ON "HAVE_COMPILER" OFF) 32 CMAKE_DEPENDENT_OPTION(BUILD_TUTORIALS "Build Thrift tutorials" ON "HAVE_COMPILER" OFF) 54 "BUILD_LIBRARIES;WITH_AS3;HAVE_COMPC" OFF) 69 "ZLIB_FOUND" OFF) 72 "Libevent_FOUND" OFF) 75 "Qt5_FOUND" OFF) 78 "BUILD_LIBRARIES;WITH_CPP" OFF) 86 "BUILD_LIBRARIES;WITH_C_GLIB;GLIB_FOUND" OFF) 92 "OPENSSL_FOUND" OFF) 100 "BUILD_LIBRARIES;WITH_JAVA;GRADLE_FOUND" OFF) [all …]
|
D | README-MSYS2.md | 46 -DWITH_LIBEVENT=OFF \ 47 -DWITH_SHARED_LIB=OFF -DWITH_STATIC_LIB=ON \ 48 -DWITH_JAVA=OFF -DWITH_PYTHON=OFF -DWITH_PERL=OFF \
|
/thrift-3.4.0/lib/java/src/main/java/org/apache/thrift/protocol/ |
D | TBinaryProtocol.java | 364 int off = 0; in readI16() local 368 off = trans_.getBufferPosition(); in readI16() 374 return (short) (((buf[off] & 0xff) << 8) | ((buf[off + 1] & 0xff))); in readI16() 380 int off = 0; in readI32() local 384 off = trans_.getBufferPosition(); in readI32() 389 return ((buf[off] & 0xff) << 24) in readI32() 390 | ((buf[off + 1] & 0xff) << 16) in readI32() 391 | ((buf[off + 2] & 0xff) << 8) in readI32() 392 | ((buf[off + 3] & 0xff)); in readI32() 398 int off = 0; in readI64() local [all …]
|
D | TCompactProtocol.java | 218 * opportunity to pop the last field from the current struct off of the field stack. 456 /** Convert a long into little-endian bytes in buf starting at off and going until off+7. */ 457 private void fixedLongToBytes(long n, byte[] buf, int off) { in fixedLongToBytes() argument 458 buf[off + 0] = (byte) (n & 0xff); in fixedLongToBytes() 459 buf[off + 1] = (byte) ((n >> 8) & 0xff); in fixedLongToBytes() 460 buf[off + 2] = (byte) ((n >> 16) & 0xff); in fixedLongToBytes() 461 buf[off + 3] = (byte) ((n >> 24) & 0xff); in fixedLongToBytes() 462 buf[off + 4] = (byte) ((n >> 32) & 0xff); in fixedLongToBytes() 463 buf[off + 5] = (byte) ((n >> 40) & 0xff); in fixedLongToBytes() 464 buf[off + 6] = (byte) ((n >> 48) & 0xff); in fixedLongToBytes() [all …]
|
/thrift-3.4.0/lib/javame/src/org/apache/thrift/transport/ |
D | TTransport.java | 59 * Reads up to len bytes into buffer buf, starting att offset off. 62 * @param off Index to start reading at 67 public abstract int read(byte[] buf, int off, int len) in read() argument 71 * Guarantees that all of len bytes are actually read off the transport. 74 * @param off Index to start reading at 79 public int readAll(byte[] buf, int off, int len) in readAll() argument 84 ret = read(buf, off+got, len-got); in readAll() 107 * @param off The offset to start writing from 111 public abstract void write(byte[] buf, int off, int len) in write() argument
|
D | TFramedTransport.java | 76 public int read(byte[] buf, int off, int len) throws TTransportException { in read() argument 78 int got = readBuffer_.read(buf, off, len); in read() 87 return readBuffer_.read(buf, off, len); in read() 104 public void write(byte[] buf, int off, int len) throws TTransportException { in write() argument 105 writeBuffer_.write(buf, off, len); in write()
|
D | TMemoryBuffer.java | 50 public int read(byte[] buf, int off, int len) { in read() argument 54 System.arraycopy(src, pos_, buf, off, amtToRead); in read() 60 public void write(byte[] buf, int off, int len) { in write() argument 61 arr_.write(buf, off, len); in write()
|
/thrift-3.4.0/lib/ocaml/src/ |
D | TFramedTransport.ml | 62 method private read_from_frame frame buf off len = 64 String.blit frame read_buf_offset buf off to_copy; 68 method read buf off len = 71 let i = self#read_from_frame frame buf off len in 76 self#read_from_frame frame buf off len 80 self#read buf off len 82 method write buf off len = 83 write_buf <- write_buf ^ (String.sub buf off len)
|
D | TChannelTransport.ml | 30 method read buf off len = 33 really_input i buf off len; len 37 method write buf off len = output o buf off len
|
D | TSocket.ml | 43 method read buf off len = match chans with 47 really_input i buf off len; len 51 method write buf off len = match chans with 53 | Some(i,o) -> output o buf off len
|
/thrift-3.4.0/lib/haxe/src/org/apache/thrift/transport/ |
D | TTransport.hx | 70 * Reads up to len bytes into buffer buf, starting att offset off. 73 * @param off Index to start reading at 78 public function read( buf : BytesBuffer, off : Int, len : Int) : Int { 83 * Guarantees that all of len bytes are actually read off the transport. 86 * @param off Index to start reading at 91 public function readAll(buf : BytesBuffer, off : Int, len : Int) : Int { 96 ret = read(buf, off+got, len-got); 125 * @param off The offset to start writing from 129 public function write(buf:Bytes, off : Int, len : Int) : Void {
|
D | TStreamTransport.hx | 69 public override function read( buf : BytesBuffer, off : Int, len : Int) : Int { 77 var size = InputStream.Read( data, off, len); 82 public override function write(buf:Bytes, off : Int, len : Int) : Void { 89 OutputStream.Write(buf, off, len);
|
D | TSocket.hx | 126 // Reads up to len bytes into buffer buf, starting att offset off. 128 public override function read( buf : BytesBuffer, off : Int, len : Int) : Int { 148 buf.addByte( input.get(off+nr)); 157 if(readCount < off) { 158 input.read(off-readCount); 159 readCount = off; 189 public override function write(buf : Bytes, off : Int, len : Int) : Void 191 obuffer.writeBytes(buf, off, len);
|
D | TFramedTransport.hx | 69 public override function read(buf : BytesBuffer, off : Int, len : Int) : Int { 74 var got : Int = readBuffer_.readBytes(data, off, len); 84 var got = readBuffer_.readBytes(data, off, len); 130 public override function write(buf : Bytes, off : Int, len : Int) : Void { 131 writeBuffer_.writeBytes(buf, off, len);
|
D | THttpClient.hx | 68 public override function read(buf:BytesBuffer, off : Int, len : Int) : Int { 74 len = responseBuffer_.readBytes(data, off, len); 80 public override function write(buf:Bytes, off : Int, len : Int) : Void { 81 requestBuffer_.writeBytes(buf, off, len);
|
/thrift-3.4.0/lib/java/src/main/java/org/apache/thrift/transport/ |
D | TTransport.java | 77 * Reads up to len bytes into buffer buf, starting at offset off. 80 * @param off Index to start reading at 85 public abstract int read(byte[] buf, int off, int len) throws TTransportException; in read() argument 88 * Guarantees that all of len bytes are actually read off the transport. 91 * @param off Index to start reading at 96 public int readAll(byte[] buf, int off, int len) throws TTransportException { in readAll() argument 100 ret = read(buf, off + got, len - got); in readAll() 128 * @param off The offset to start writing from 132 public abstract void write(byte[] buf, int off, int len) throws TTransportException; in write() argument
|
D | TByteBuffer.java | 36 public int read(byte[] buf, int off, int len) throws TTransportException { in read() argument 43 byteBuffer.get(buf, off, n); in read() 52 public void write(byte[] buf, int off, int len) throws TTransportException { in write() argument 54 byteBuffer.put(buf, off, len); in write()
|
D | TMemoryTransport.java | 63 public int read(byte[] buf, int off, int len) throws TTransportException { in read() argument 71 inputBuffer.get(buf, off, len); in read() 76 public void write(byte[] buf, int off, int len) throws TTransportException { in write() argument 77 outputBuffer.write(buf, off, len); in write()
|
D | TSimpleFileTransport.java | 145 * @param off offset into buff to begin writing to 151 public int read(byte[] buf, int off, int len) throws TTransportException { in read() argument 158 iBytesRead = file.read(buf, off, len); in read() 170 * @param off offset into buffer to begin writing from 175 public void write(byte[] buf, int off, int len) throws TTransportException { in write() argument 177 file.write(buf, off, len); in write()
|
/thrift-3.4.0/contrib/zeromq/csharp/ |
D | TZmqClient.cs | 43 public override int Read (byte[] buf, int off, int len) in Read() argument 46 if (off != 0 || len != buf.Length) in Read() 64 public override void Write (byte[] buf, int off, int len) in Write() argument 67 _wbuf.Write (buf, off, len); in Write()
|
/thrift-3.4.0/lib/delphi/src/ |
D | Thrift.Transport.pas | 59 function Read(var buf: TBytes; off: Integer; len: Integer): Integer; overload; in Read() 60 …function Read(const pBuf : Pointer; const buflen : Integer; off: Integer; len: Integer): Integer; … in Read() 61 function ReadAll(var buf: TBytes; off: Integer; len: Integer): Integer; overload; in ReadAll() 62 …function ReadAll(const pBuf : Pointer; const buflen : Integer; off: Integer; len: Integer): Intege… in ReadAll() 64 procedure Write( const buf: TBytes; off: Integer; len: Integer); overload; 65 procedure Write( const pBuf : Pointer; off, len : Integer); overload; 84 function Read(var buf: TBytes; off: Integer; len: Integer): Integer; overload; inline; in Read() 85 …function Read(const pBuf : Pointer; const buflen : Integer; off: Integer; len: Integer): Integer; … in Read() 86 function ReadAll(var buf: TBytes; off: Integer; len: Integer): Integer; overload; inline; in ReadAll() 87 …function ReadAll(const pBuf : Pointer; const buflen : Integer; off: Integer; len: Integer): Intege… in ReadAll() [all …]
|
/thrift-3.4.0/lib/java/src/test/java/org/apache/thrift/transport/ |
D | WriteCountingTransport.java | 43 public int read(byte[] buf, int off, int len) throws TTransportException { in read() argument 48 public void write(byte[] buf, int off, int len) throws TTransportException { in write() argument 50 trans.write(buf, off, len); in write()
|
D | ReadCountingTransport.java | 48 public int read(byte[] buf, int off, int len) throws TTransportException { in read() argument 53 return trans.read(buf, off, len); in read() 57 public void write(byte[] buf, int off, int len) throws TTransportException { in write() argument
|