Lines Matching refs:new
51 MemoryStream rawOutput = new MemoryStream();
52 CodedOutputStream output = new CodedOutputStream(rawOutput);
61 MemoryStream rawOutput = new MemoryStream();
62 CodedOutputStream output = new CodedOutputStream(rawOutput);
77 MemoryStream rawOutput = new MemoryStream();
79 new CodedOutputStream(rawOutput, bufferSize);
86 MemoryStream rawOutput = new MemoryStream();
87 CodedOutputStream output = new CodedOutputStream(rawOutput, bufferSize);
101 AssertWriteVarint(new byte[] {0x00}, 0);
102 AssertWriteVarint(new byte[] {0x01}, 1);
103 AssertWriteVarint(new byte[] {0x7f}, 127);
105 AssertWriteVarint(new byte[] {0xa2, 0x74}, (0x22 << 0) | (0x74 << 7));
107 AssertWriteVarint(new byte[] {0xbe, 0xf7, 0x92, 0x84, 0x0b},
113 AssertWriteVarint(new byte[] {0xbe, 0xf7, 0x92, 0x84, 0x1b},
118 new byte[] {0x80, 0xe6, 0xeb, 0x9c, 0xc3, 0xc9, 0xa4, 0x49},
123 new byte[] {0x9b, 0xa8, 0xf9, 0xc2, 0xbb, 0xd6, 0x80, 0x85, 0xa6, 0x01},
136 MemoryStream rawOutput = new MemoryStream();
137 CodedOutputStream output = new CodedOutputStream(rawOutput);
145 rawOutput = new MemoryStream();
146 output = new CodedOutputStream(rawOutput, bufferSize);
159 MemoryStream rawOutput = new MemoryStream();
160 CodedOutputStream output = new CodedOutputStream(rawOutput);
168 rawOutput = new MemoryStream();
169 output = new CodedOutputStream(rawOutput, blockSize);
182 AssertWriteLittleEndian32(new byte[] {0x78, 0x56, 0x34, 0x12}, 0x12345678);
183 AssertWriteLittleEndian32(new byte[] {0xf0, 0xde, 0xbc, 0x9a}, 0x9abcdef0);
186 new byte[] {0xf0, 0xde, 0xbc, 0x9a, 0x78, 0x56, 0x34, 0x12},
189 new byte[] {0x78, 0x56, 0x34, 0x12, 0xf0, 0xde, 0xbc, 0x9a},
203 MemoryStream rawOutput = new MemoryStream();
204 CodedOutputStream output = new CodedOutputStream(rawOutput, blockSize);
278 byte[] bytes = new byte[10];
279 CodedOutputStream output = new CodedOutputStream(bytes);
289 byte[] content = new byte[110];
293 byte[] child = new byte[120];
295 MemoryStream ms = new MemoryStream(child);
296 CodedOutputStream cout = new CodedOutputStream(ms, 20);
315 byte[] bytes = new byte[130];
317 CodedOutputStream cout = new CodedOutputStream(bytes);
337 CodedInputStream cin = new CodedInputStream(new MemoryStream(bytes), new byte[50], 0, 0);
394 var memoryStream = new MemoryStream();
396 using (var cos = new CodedOutputStream(memoryStream))
408 var memoryStream = new MemoryStream();
410 using (var cos = new CodedOutputStream(memoryStream, true))