Home
last modified time | relevance | path

Searched refs:byte (Results 1 – 25 of 160) sorted by relevance

1234567

/thrift-3.4.0/lib/rb/spec/
DThriftSpec.thrift86 2: list<byte> bytes,
113 2: byte a_bite,
136 1: list<list<byte>> value
140 1: set<list<byte>> value
144 1: map<list<byte>, byte> value
148 1: map<byte, list<byte>> value
153 1: list<set<byte>> value
157 1: set<set<byte>> value
161 1: map<set<byte>, byte> value
165 1: map<byte, set<byte>> value
[all …]
/thrift-3.4.0/lib/d/test/
Dstress_test_server.d39 byte echoByte(byte arg) { return arg; } in echoByte()
42 byte[] echoList(byte[] arg) { return arg; } in echoList()
43 HashSet!byte echoSet(HashSet!byte arg) { return arg; }
44 byte[byte] echoMap(byte[byte] arg) { return arg; } in echoMap()
/thrift-3.4.0/lib/rb/lib/thrift/
Dbytes.rb68 def self.set_string_byte(string, index, byte) argument
69 string.setbyte(index, byte)
115 def self.set_string_byte(string, index, byte) argument
116 string[index] = byte
/thrift-3.4.0/lib/rb/lib/thrift/transport/
Dbase_transport.rb44 def self.set_string_byte(string, index, byte) argument
45 Bytes.set_string_byte(string, index, byte)
75 tmp.each_byte do |byte|
76 Bytes.set_string_byte(buffer, i, byte)
Dbuffered_transport.rb87 byte = Bytes.get_string_byte(@rbuf, @index)
88 Bytes.set_string_byte(buffer, i, byte)
/thrift-3.4.0/lib/erl/src/
Dthrift_binary_protocol.erl87 {This2, ok} = write(This1, {byte, Type}),
98 {This1, ok} = write(This0, {byte, Type}),
103 write(This, {byte, ?tType_STOP});
111 {This1, ok} = write(This0, {byte, Ktype}),
112 {This2, ok} = write(This1, {byte, Vtype}),
121 {This1, ok} = write(This0, {byte, Etype}),
130 {This1, ok} = write(This0, {byte, Etype}),
139 write(This, {bool, true}) -> write(This, {byte, 1});
140 write(This, {bool, false}) -> write(This, {byte, 0});
142 write(This, {byte, Byte}) ->
[all …]
Dthrift_compact_protocol.erl110 true -> write(This1, {byte, (IdDiff bsl 4) bor CompactType});
112 {This2, ok} = write(This1, {byte, CompactType}),
129 {This1, {ok, Byte}} = read(This0, byte),
139 {This1, ok} = write(This0, {byte, ?PROTOCOL_ID}),
140 …{This2, ok} = write(This1, {byte, (?VERSION_1 band ?VERSION_MASK) bor (Type bsl ?TYPE_SHIFT_AMOUNT…
159 write(This, field_stop) -> write(This, {byte, ?tType_STOP});
168 write(This0, {byte, 0});
175 write(This1, {byte, (typeid_to_compact(Ktype) bsl 4) bor typeid_to_compact(Vtype)});
183 write(This0, {byte, (Size bsl 4) bor typeid_to_compact(Etype)});
188 {This1, ok} = write(This0, {byte, 16#f0 bor typeid_to_compact(Etype)}),
[all …]
/thrift-3.4.0/lib/dart/lib/src/protocol/
Dt_json_protocol.dart63 /// Read a byte that must match [char]; otherwise throw a [TProtocolError].
65 int byte = _reader.read();
66 if (byte != charByte) {
68 … "Expected character ${String.fromCharCode(charByte)} but found: ${String.fromCharCode(byte)}");
72 int _hexVal(int byte) {
73 if (byte >= _Constants.HEX_0_BYTES[0] &&
74 byte <= _Constants.HEX_9_BYTES[0]) {
75 return byte - _Constants.HEX_0_BYTES[0];
76 } else if (byte >= _Constants.HEX_A_BYTES[0] &&
77 byte <= _Constants.HEX_F_BYTES[0]) {
[all …]
/thrift-3.4.0/doc/specs/
Dthrift-sasl-spec.txt1 A Thrift SASL message shall be a byte array of the following form:
3 | 1-byte status code | 4-byte payload length | variable-length payload |
5 The length fields shall be interpreted as integers, with the high byte sent
35 server shall return the BAD byte, followed by a 4-byte, potentially zero-value
48 6. The server then provides the byte array of the payload received to its
51 sent to the client. This message shall consist of an OK byte, followed by the
56 the server an OK byte, followed by the non-zero-value length of the response,
61 protocol, its next message shall be the COMPLETE byte, followed by a 4-byte
68 side should send the other a BAD byte, followed by a 4-byte potentially
75 response sent by the other, this side should send the other an ERROR byte,
[all …]
/thrift-3.4.0/lib/rb/lib/thrift/protocol/
Dbinary_protocol.rb84 def write_byte(byte) argument
85 raise RangeError if byte < -2**31 || byte >= 2**32
86 trans.write([byte].pack('c'))
172 byte = read_byte
173 byte != 0
/thrift-3.4.0/lib/erl/test/
Dtest_thrift_compact_protocol.erl60 byte(This0, Value0) -> round_trip(This0, byte, Value0). function
63 {This1, ok} = byte(This0, 0),
64 {This2, ok} = byte(This1, 42),
65 {This3, ok} = byte(This2, -1),
66 {This4, ok} = byte(This3, -128),
113 {P4, ok} = write(P3, {byte, 42}),
116 {P7, ok} = write(P6, {byte, 3}),
119 {P10, ok} = write(P9, {byte, 8}),
128 {P18, {ok, 42}} = read(P17, byte),
131 {P21, {ok, 3}} = read(P20, byte),
[all …]
/thrift-3.4.0/lib/cpp/src/thrift/protocol/
DTCompactProtocol.tcc223 uint32_t TCompactProtocolT<Transport_>::writeByte(const int8_t byte) { in writeByte() argument
224 trans_->write((uint8_t*)&byte, 1); in writeByte()
478 int8_t byte; in readFieldBegin() local
481 rsize += readByte(byte); in readFieldBegin()
482 type = (byte & 0x0f); in readFieldBegin()
492 auto modifier = (int16_t)(((uint8_t)byte & 0xf0) >> 4); in readFieldBegin()
618 uint32_t TCompactProtocolT<Transport_>::readByte(int8_t& byte) { in readByte() argument
621 byte = *(int8_t*)b; in readByte()
749 uint8_t byte = borrowed[rsize]; in readVarint64() local
751 val |= (uint64_t)(byte & 0x7f) << shift; in readVarint64()
[all …]
/thrift-3.4.0/lib/php/lib/Protocol/
DTCompactProtocol.php148 $byte = $arr[1];
150 $result |= ($byte & 0x7f) << $shift;
151 if (($byte >> 7) === 0) {
332 public function writeUByte($byte) argument
334 $this->trans_->write(pack('C', $byte), 1);
589 public function getTType($byte) argument
591 return self::$ttypes[$byte & 0x0f];
612 $byte = $arr[1];
616 $lo |= (($byte & 0x7f) << $shift);
618 $lo |= (($byte & 0x0f) << 28);
[all …]
DTProtocolDecorator.php151 public function writeByte($byte) argument
153 return $this->concreteProtocol_->writeByte($byte);
256 public function readByte(&$byte) argument
258 return $this->concreteProtocol_->readByte($byte);
/thrift-3.4.0/lib/swift/Sources/
DTCompactProtocol.swift70 func writebyteDirect(_ byte: UInt8) throws { in writebyteDirect()
71 let byte = Data([byte]) in writebyteDirect() variable
73 try self.transport.write(data: byte) in writebyteDirect()
143 let byte: UInt8 = try read() in readVarint32() variable
145 result |= UInt32(byte & 0x7F) << shift in readVarint32()
146 if (byte & 0x80) == 0 { in readVarint32()
161 let byte: UInt8 = try read() in readVarint64() variable
163 result |= UInt64(byte & 0x7F) << shift in readVarint64()
164 if (byte & 0x80) == 0 { in readVarint64()
286 let byte: UInt8 = try read() in readFieldBegin() variable
[all …]
/thrift-3.4.0/compiler/cpp/src/thrift/parse/
Dt_type.h79 static std::string byte_to_hex(uint8_t byte) { in byte_to_hex() argument
81 rv += nybble_to_xdigit(byte >> 4); in byte_to_hex()
82 rv += nybble_to_xdigit(byte & 0x0f); in byte_to_hex()
/thrift-3.4.0/lib/d/src/thrift/protocol/
Dcompact.d103 void writeByte(byte b) { in writeByte()
135 writeByte(cast(byte)PROTOCOL_ID); in writeMessageBegin()
136 writeByte(cast(byte)((VERSION_N & VERSION_MASK) | in writeMessageBegin()
180 writeByte(cast(byte)(toCType(map.keyType) << 4 | toCType(map.valueType))); in writeMapBegin()
204 byte readByte() { in readByte()
207 return cast(byte)b[0]; in readByte()
250 if (protocolId != cast(byte)PROTOCOL_ID) { in readMessageBegin()
371 void writeFieldBeginInternal(TField field, byte typeOverride = -1) {
378 writeByte(cast(byte)((field.id - lastFieldId_) << 4 | typeToWrite));
381 writeByte(cast(byte)typeToWrite);
[all …]
/thrift-3.4.0/lib/rb/ext/
Dmemory_buffer.c80 char byte = RSTRING_PTR(buf)[index++]; in rb_thrift_memory_buffer_read_byte() local
88 int result = (int) byte; in rb_thrift_memory_buffer_read_byte()
103 char byte = RSTRING_PTR(buf)[index++]; in rb_thrift_memory_buffer_read_into_buffer() local
108 ((char*)RSTRING_PTR(buffer_value))[i] = byte; in rb_thrift_memory_buffer_read_into_buffer()
/thrift-3.4.0/test/partial/
Dthrift_test_schema.thrift34 1: optional byte byteField;
48 1: optional byte byteField;
61 10: optional list<byte> byteList;
75 30: optional set<byte> byteSet;
89 50: optional map<byte, byte> byteMap;
/thrift-3.4.0/lib/d/src/thrift/codegen/
Didlgen.d229 static if (is(FullyUnqual!T == bool) || is(FullyUnqual!T == byte) || in CompositeTypeDeps()
445 } else static if (is(FullyUnqual!T == byte)) { in dToIdlType()
483 } else static if (is(FullyUnqual!T == byte) || in dToIdlConst()
566 byte a_bite; in version()
575 byte[] byte_list; in version()
582 TFieldMeta(`a_bite`, 3, TReq.OPT_IN_REQ_OUT, q{cast(byte)127}), in version()
592 byte[] v; in version()
593 v ~= cast(byte)1; in version()
594 v ~= cast(byte)2; in version()
595 v ~= cast(byte)3; in version()
[all …]
/thrift-3.4.0/lib/perl/lib/Thrift/
DProtocolDecorator.pm166 my $byte = shift;
168 return $self->{concreteProtocol}->writeByte($byte);
318 my $byte = shift;
320 return $self->{concreteProtocol}->readByte($byte);
/thrift-3.4.0/test/audit/
Dbreak18.thrift70 7: byte struct1_member7,
82 7: list<byte> struct2_member7,
91 4: map<byte, test_enum1> struct3_member4,
131 7: list<byte> function2_arg7,
150 4: list<byte> function2_arg4,
Dbreak19.thrift70 7: byte struct1_member7,
82 7: list<byte> struct2_member7,
91 4: map<byte, test_enum1> struct3_member4,
131 7: list<byte> function2_arg7,
150 4: list<byte> function2_arg4,
Dbreak2.thrift69 7: byte struct1_member7,
81 7: list<byte> struct2_member7,
90 4: map<byte, test_enum1> struct3_member4,
130 7: list<byte> function2_arg7,
149 4: list<byte> function2_arg4,
Dbreak20.thrift69 7: byte struct1_member7,
81 7: list<byte> struct2_member7,
90 4: map<byte, test_enum1> struct3_member4,
130 7: list<byte> function2_arg7,
149 4: list<byte> function2_arg4,

1234567