Home
last modified time | relevance | path

Searched refs:struct (Results 1 – 25 of 225) sorted by relevance

123456789

/thrift-3.4.0/lib/erl/test/
Dname_conflict_test.erl107 {struct, [{1, double},{2, double}]},
111 {struct, [
113 {2, {struct, {name_conflict_test_types, delegate}}}
118 {struct, [{1, bool}]},
122 {struct, [
123 {1, {struct, {name_conflict_test_types, using}}},
130 {struct, [{1, bool},{2, bool},{3, bool},{4, bool}]},
134 {struct, [{1, bool},{2, bool},{3, bool},{4, bool}]},
138 {struct, [{1, bool},{2, bool},{3, bool},{4, bool}]},
142 {struct, [{1, bool},{2, bool},{3, bool},{4, bool},{5, bool},{6, bool}]},
[all …]
Dthrift_test_test.erl161 {struct, [{1, string}, {2, i32}]},
165 {struct, [
172 {struct, [
179 {struct, [
188 {struct, [
190 …{2, undefined, {struct, {'thrift_test_types', 'thrift.test.Xtruct'}}, struct_thing, #'thrift.test.…
196 {struct, [
205 {struct, [
207 {2, undefined, {list, {struct, {'thrift_test_types', 'thrift.test.Xtruct'}}}, xtructs, []}
212 {struct, [
[all …]
Dlegacy_names_test.erl38 {struct, [
45 {struct, [
46 {1, undefined, {list, {struct, {'legacyNames_types', 'capitalizedStruct'}}}, 'structs', []}
55 {struct, [
56 {1, {struct, {'legacyNames_types', 'capitalizedStruct'}}},
57 {2, {struct, {'legacyNames_types', 'capitalizedStruct'}}}
62 {struct, {'legacyNames_types', 'listCapitalizedStructs'}},
66 {struct, [{1, {struct, {'legacyNames_types', 'xception'}}}]},
Dtest_omit.erl15 {P1, ok} = thrift_protocol:write(P0, {{struct, {thrift_omit_with_types, element(1, A)}}, A}),
16 {P2, {ok, O0}} = thrift_protocol:read(P1, {struct, {thrift_omit_without_types, element(1, A)}}),
21 {P3, ok} = thrift_protocol:write(P2, {{struct, {thrift_omit_with_types, element(1, B)}}, B}),
22 {_P4, {ok, O1}} = thrift_protocol:read(P3, {struct, {thrift_omit_without_types, element(1, A)}}),
37 {P1, ok} = thrift_protocol:write(P0, {{struct, {thrift_omit_with_types, element(1, A)}}, A}),
38 {P2, {ok, O0}} = thrift_protocol:read(P1, {struct, {thrift_omit_without_types, element(1, A)}}),
43 {P3, ok} = thrift_protocol:write(P2, {{struct, {thrift_omit_with_types, element(1, B)}}, B}),
44 {_P4, {ok, O1}} = thrift_protocol:read(P3, {struct, {thrift_omit_without_types, element(1, A)}}),
59 {P1, ok} = thrift_protocol:write(P0, {{struct, {thrift_omit_with_types, element(1, B)}}, B}),
60 {_P2, {ok, O0}} = thrift_protocol:read(P1, {struct, {thrift_omit_without_types, element(1, B)}}),
[all …]
/thrift-3.4.0/lib/java/src/test/java/org/apache/thrift/
DTestUnsafeBinaries.java46 UnsafeBytes struct = new UnsafeBytes(ByteBuffer.wrap(input)); in testUnsafeConstructor() local
50 assertArrayEquals(new byte[] {2, 1}, struct.getBytes()); in testUnsafeConstructor()
59 UnsafeBytes struct = new UnsafeBytes(ByteBuffer.wrap(input())); in testUnsafeGetter() local
61 byte[] val = struct.getBytes(); in testUnsafeGetter()
64 assertArrayEquals(new byte[] {2, 1}, struct.getBytes()); in testUnsafeGetter()
70 UnsafeBytes struct = new UnsafeBytes(); in testUnsafeSetter() local
73 struct.setBytes(val); in testUnsafeSetter()
77 assertArrayEquals(new byte[] {2, 1}, struct.getBytes()); in testUnsafeSetter()
83 UnsafeBytes struct = new UnsafeBytes(ByteBuffer.wrap(input())); in testUnsafeBufferFor() local
85 ByteBuffer val = struct.bufferForBytes(); in testUnsafeBufferFor()
[all …]
/thrift-3.4.0/lib/java/src/test/java/org/apache/thrift/protocol/
DTestTSimpleJSONProtocol.java80 CompactProtoTestStruct struct = Fixtures.getCompactProtoTestStruct().deepCopy(); in testSanePartsOfCompactProtoTestStruct() local
81 struct.unsetList_byte_map(); in testSanePartsOfCompactProtoTestStruct()
82 struct.unsetSet_byte_map(); in testSanePartsOfCompactProtoTestStruct()
83 struct.unsetMap_byte_map(); in testSanePartsOfCompactProtoTestStruct()
85 struct.unsetByte_set(); in testSanePartsOfCompactProtoTestStruct()
86 struct.unsetI16_set(); in testSanePartsOfCompactProtoTestStruct()
87 struct.unsetI64_set(); in testSanePartsOfCompactProtoTestStruct()
88 struct.unsetDouble_set(); in testSanePartsOfCompactProtoTestStruct()
89 struct.unsetString_set(); in testSanePartsOfCompactProtoTestStruct()
90 struct.unsetI16_byte_map(); in testSanePartsOfCompactProtoTestStruct()
[all …]
/thrift-3.4.0/lib/java/src/test/resources/
DJavaTypes.thrift22 struct Integer {
26 struct String {
30 struct Binary {
34 struct Boolean {
38 struct Double {
42 struct Long {
46 struct Byte {
50 struct Float {
54 struct Uuid {
58 struct List {
[all …]
/thrift-3.4.0/lib/java/src/test/java/org/apache/thrift/partial/
DThriftStructProcessorTest.java182 TestStruct struct = (TestStruct) instance; in testStructPrimitiveFields() local
186 assertNull(getFieldValue(struct, fieldId)); in testStructPrimitiveFields()
187 processor.setByte(struct, fieldId, (byte) 42); in testStructPrimitiveFields()
188 assertEquals(42, struct.getByteField()); in testStructPrimitiveFields()
192 assertNull(getFieldValue(struct, fieldId)); in testStructPrimitiveFields()
193 processor.setInt16(struct, fieldId, (short) 42); in testStructPrimitiveFields()
194 assertEquals(42, struct.getI16Field()); in testStructPrimitiveFields()
198 assertNull(getFieldValue(struct, fieldId)); in testStructPrimitiveFields()
199 processor.setInt32(struct, fieldId, 42); in testStructPrimitiveFields()
200 assertEquals(42, struct.getI32Field()); in testStructPrimitiveFields()
[all …]
/thrift-3.4.0/lib/java/src/main/java/org/apache/thrift/
DTUnion.java230 public void read(TProtocol iprot, TUnion struct) throws TException { in read() argument
231 struct.setField_ = null; in read()
232 struct.value_ = null; in read()
238 struct.value_ = struct.standardSchemeReadValue(iprot, field); in read()
239 if (struct.value_ != null) { in read()
240 struct.setField_ = struct.enumForId(field.id); in read()
252 public void write(TProtocol oprot, TUnion struct) throws TException { in write() argument
253 if (struct.getSetField() == null || struct.getFieldValue() == null) { in write()
256 oprot.writeStructBegin(struct.getStructDesc()); in write()
257 oprot.writeFieldBegin(struct.getFieldDesc(struct.setField_)); in write()
[all …]
/thrift-3.4.0/lib/rb/spec/
DThriftSpec.thrift41 struct Hello {
50 struct StructWithSomeEnum {
65 struct Foo {
76 struct Foo2 {
80 struct BoolStruct {
84 struct SimpleList {
124 struct Struct_with_union {
130 struct StructWithEnumMap {
135 struct NestedListInList {
139 struct NestedListInSet {
[all …]
Dstruct_spec.rb52 struct = SpecNamespace::Foo.new
53 struct.ints << 17
62 struct = SpecNamespace::BoolStruct.new(:yesno => false)
63 expect(struct.yesno).to be_falsey
100 struct = SpecNamespace::Foo.new
135 struct.read(prot)
137 expect(struct.simple).to eq(42)
138 …expect(struct.complex).to eq({1 => {"pi" => Math::PI, "e" => Math::E}, 14 => {"feigenbaum" => 4.66…
139 expect(struct.hello).to eq(SpecNamespace::Hello.new(:greeting => "what's up?"))
140 expect(struct.words).to eq("apple banana")
[all …]
Dcompact_protocol_spec.rb78 struct = Thrift::Test::CompactProtoTestStruct.new
80 struct.write(proto)
84 expect(struct2).to eq(struct)
120 struct = Thrift::Test::SingleMapTestStruct.new(:i32_map => {})
122 bytes = ser.serialize(struct)
127 expect(struct).to eq(struct2)
/thrift-3.4.0/test/v0.16/
DNameConflictTest.thrift25 struct using {
30 struct delegate {
35 struct get {
39 struct partial {
56 struct foldr {
60 struct of {
65 struct ofOf {
70 struct ClassAndProp {
77 struct second_chance {
84 struct NOW_EAT_THIS {
[all …]
DDebugProtoTest.thrift25 struct Doubles {
36 struct OneOfEach {
53 struct Bonk {
58 struct Nesting {
63 struct HolyMoley {
69 struct Backwards {
74 struct Empty {
79 struct Wrapper {
85 struct RandomStuff {
96 struct Base64 {
[all …]
DThriftTest.thrift66 struct Bonk
74 struct Bools {
79 struct Xtruct
87 struct Xtruct2
94 struct Xtruct3
103 struct Insanity
109 struct CrazyNesting {
135 struct EmptyStruct {}
137 struct OneField {
206 * Prints 'testNest("{%s}")' where thing has been formatted into a string of the nested struct
[all …]
/thrift-3.4.0/test/
DNameConflictTest.thrift25 struct using {
30 struct delegate {
35 struct get {
39 struct partial {
56 struct foldr {
60 struct of {
65 struct ofOf {
70 struct ClassAndProp {
77 struct second_chance {
84 struct NOW_EAT_THIS {
[all …]
DOptionalRequiredTest.thrift28 struct OldSchool {
34 struct Simple {
40 struct Tricky1 {
44 struct Tricky2 {
48 struct Tricky3 {
52 struct OptionalDefault {
57 struct Complex {
66 struct ManyOpt {
75 struct JavaTestHelper {
84 struct Binaries {
DDebugProtoTest.thrift25 struct Doubles {
36 struct OneOfEach {
54 struct Bonk {
59 struct Nesting {
64 struct HolyMoley {
70 struct Backwards {
75 struct Empty {
80 struct Wrapper {
86 struct RandomStuff {
97 struct Base64 {
[all …]
DDenseLinkingTest.thrift39 struct OneOfEachZZ {
52 struct BonkZZ {
57 struct NestingZZ {
62 struct HolyMoleyZZ {
68 struct BackwardsZZ {
73 struct EmptyZZ {
76 struct WrapperZZ {
80 struct RandomStuffZZ {
DThriftTest.thrift66 struct Bonk
74 struct Bools {
79 struct Xtruct
87 struct Xtruct2
94 struct Xtruct3
103 struct Insanity
109 struct CrazyNesting {
136 struct EmptyStruct {}
138 struct OneField {
214 * Prints 'testNest("{%s}")' where thing has been formatted into a string of the nested struct
[all …]
DDocTest.thrift53 /** And this is where you would document a struct */
54 struct Xtruct
57 /** And the members of a struct */
75 struct Xtruct2
83 struct Insanity
107 struct EmptyStruct {}
109 struct OneField {
259 struct TestFor3709_00 { /* ? */ 1: i32 foo }
261 struct TestFor3709_01 { /* ? */ 1: i32 foo }
263 struct TestFor3709_02 { /* ? */ 1: i32 foo }
[all …]
/thrift-3.4.0/lib/netstd/Tests/Thrift.PublicInterfaces.Compile.Tests/
DThrift5253.thrift26 struct WorksArrrgs { 1: i32 foo }
27 struct WorksRslt { 1: i32 foo }
30 struct BrokenResult{ 1: i32 foo }
31 struct BrokenArgs { 1: i32 foo }
33 struct InternalStructs { 1: optional i32 foo }
34 struct AsyncProcessor { 1: optional i32 foo }
35 struct Client { 1: optional i32 foo }
36 struct IAsync { 1: optional i32 foo }
38 struct ReservedMemberName { 1: optional i32 Isset }
/thrift-3.4.0/doc/specs/
Dthrift-protocol-spec.md37 `<struct>`. Depending upon the message type, the `<struct>` can be
44 <message> ::= <message-begin> <struct> <message-end>
54 <struct> ::= <struct-begin> <field>* <field-stop> <struct-end>
56 <struct-begin> ::= <struct-name>
58 <struct-name> ::= STRING
75 <struct> | <map> | <list> | <set>
/thrift-3.4.0/lib/php/test/Protocol/
DBinarySerializerTest.php55 $struct = new \ThriftTest\Xtruct(array('string_thing' => 'abc'));
56 $serialized = TBinarySerializer::serialize($struct, 'ThriftTest\\Xtruct');
58 $this->assertEquals($struct, $deserialized);
/thrift-3.4.0/test/audit/
DREADME.md18 * Changing the type of a struct field
19 * Changing the required-ness of a struct field
20 * Removing a struct field
21 * Adding a required struct field
22 * Adding a struct field 'in the middle'. This usually indicates an old ID has been recycled

123456789