1 override of GetBuffer
mscorlib (1)
system\io\unmanagedmemorystreamwrapper.cs (1)
65public override byte[] GetBuffer() {
85 references to GetBuffer
mscorlib (16)
system\appdomain.cs (1)
3669CrossAppDomainSerializer.SerializeObject(evidenceCollection).GetBuffer();
system\io\isolatedstorage\isolatedstoragefile.cs (1)
2388byte[] b = s.GetBuffer();
system\resources\resourcewriter.cs (2)
318bw.Write(resMgrHeaderBlob.GetBuffer(), 0, (int)resMgrHeaderBlob.Length); 508bw.Write(nameSection.GetBuffer(), 0, (int)nameSection.Length);
system\runtime\remoting\crossappdomainchannel.cs (3)
404return CrossAppDomainSerializer.SerializeMessage(retMsg).GetBuffer(); 441retBuff = CrossAppDomainSerializer.SerializeMessage(retMsg).GetBuffer(); 544responseBytes = DoTransitionDispatch(reqStm.GetBuffer(), null, out smuggledMrm);
system\runtime\remoting\messagesmuggler.cs (2)
358_serializedArgs = argStm.GetBuffer(); 529_serializedArgs = argStm.GetBuffer();
system\runtime\remoting\remotingservices.cs (1)
2414return stm.GetBuffer();
system\security\claims\ClaimsIdentity.cs (3)
1010info.AddValue(ActorKey, Convert.ToBase64String(ms.GetBuffer(), 0, (int)ms.Length)); 1027info.AddValue(BootstrapContextKey, Convert.ToBase64String(ms.GetBuffer(), 0, (int)ms.Length)); 1059return Convert.ToBase64String(ms.GetBuffer(), 0, (int)ms.Length);
system\security\claims\ClaimsPrincipal.cs (3)
452identities.Add(Convert.ToBase64String(claimsIdentityStream.GetBuffer(), 0, (int)claimsIdentityStream.Length)); 461identities.Add(Convert.ToBase64String(claimsIdentityStream.GetBuffer(), 0, (int)claimsIdentityStream.Length)); 469return Convert.ToBase64String(ms.GetBuffer(), 0, (int)ms.Length);
PresentationCore (5)
Core\CSharp\MS\Internal\Ink\InkSerializedFormat\InkSerializer.cs (4)
1894outputStream.Write(localStream.GetBuffer(), 0, (int)cumulativeEncodedSize); 2020localStream.Write(tempstrm.GetBuffer(), 0, (int)cbStroke); 2560stream.Write( drawingAttributeStream.GetBuffer(), //returns a direct ref, no copied 2599stream.Write( drawingAttributeStreams[i].GetBuffer(), //returns a direct ref, no copies
Core\CSharp\System\Windows\DataObject.cs (1)
1691buffer = memoryStream.GetBuffer();
PresentationFramework (3)
src\Framework\MS\Internal\Controls\StickyNote\StickyNoteContentControl.cs (3)
227node.InnerText = Convert.ToBase64String(buffer.GetBuffer(), 0, (int)buffer.Length); 319dataObject.SetData(DataFormats.Xaml, encoding.GetString(buffer.GetBuffer())); 396node.InnerText = Convert.ToBase64String(buffer.GetBuffer(), 0, (int)buffer.Length);
System.Activities (1)
System\Activities\Debugger\Symbol\WorkflowSymbol.cs (1)
127Array.Copy(ms.GetBuffer(), buffer, ms.Length);
System.Activities.DurableInstancing (2)
System\Activities\DurableInstancing\DefaultObjectSerializer.cs (2)
46return new ArraySegment<byte>(memoryStream.GetBuffer(), 0, Convert.ToInt32(memoryStream.Length)); 55return new ArraySegment<byte>(memoryStream.GetBuffer(), 0, Convert.ToInt32(memoryStream.Length));
System.AddIn (2)
System\Addin\Hosting\AddInStore.cs (2)
1034bw.Write(serializedData.GetBuffer(), 0, (int)serializedData.Length); 1039s.Write(cache.GetBuffer(), 0, (int) cache.Length);
System.Data (2)
fx\src\data\System\Data\DataSet.cs (1)
299info.AddValue(String.Format(CultureInfo.InvariantCulture, "DataSet.Tables_{0}", i), memStream.GetBuffer());
fx\src\data\System\Data\SqlClient\SqlDependency.cs (1)
501SNINativeMethodWrapper.SetData(stream.GetBuffer()); // Native will be forced to synchronize and not overwrite.
System.Data.Services.Client (3)
System\Data\Services\Client\DataServiceContext.cs (3)
4284byte[] buffer = memory.GetBuffer(); 5170buffer = stream.GetBuffer(); 5727byte[] buffer = memoryStream.GetBuffer();
System.IdentityModel (12)
System\IdentityModel\Diagnostics\DigestTraceRecordHelper.cs (1)
65byte[] contentBuffer = _logStream.GetBuffer();
System\IdentityModel\Diagnostics\SecurityTraceRecordHelper.cs (1)
166byte[] channelBindingData = ms.GetBuffer();
System\IdentityModel\EnvelopedSignatureWriter.cs (2)
152((IFragmentCapableXmlDictionaryWriter)base.InnerWriter).WriteFragment(_signatureFragment.GetBuffer(), 0, (int)_signatureFragment.Length); 153((IFragmentCapableXmlDictionaryWriter)base.InnerWriter).WriteFragment(_endFragment.GetBuffer(), 0, (int)_endFragment.Length);
System\IdentityModel\SamlDelegatingWriter.cs (3)
84((IFragmentCapableXmlDictionaryWriter)this.effectiveWriter).WriteFragment(this.startFragment.GetBuffer(), 0, (int)this.startFragment.Length); 85((IFragmentCapableXmlDictionaryWriter)this.effectiveWriter).WriteFragment(this.signatureFragment.GetBuffer(), 0, (int)this.signatureFragment.Length); 86((IFragmentCapableXmlDictionaryWriter)this.effectiveWriter).WriteFragment(this.endFragment.GetBuffer(), 0, (int)this.endFragment.Length);
System\IdentityModel\Tokens\BootstrapContext.cs (1)
167info.AddValue(_tokenKey, Convert.ToBase64String(ms.GetBuffer(), 0, (int)ms.Length));
System\IdentityModel\Tokens\EncryptedSecurityTokenHandler.cs (1)
351byte[] plainTextBytes = plaintextStream.GetBuffer();
System\IdentityModel\Tokens\Saml2SecurityTokenHandler.cs (2)
2938encryptedData.Encrypt(symmetricAlgorithm, plaintextStream.GetBuffer(), 0, (int)plaintextStream.Length); 4551encryptedData.Encrypt(symmetricAlgorithm, plaintextStream.GetBuffer(), 0, (int)plaintextStream.Length);
System\IdentityModel\Tokens\SamlAssertion.cs (1)
312effectiveReader = XmlDictionaryReader.CreateBinaryReader(stream.GetBuffer(), 0, (int)stream.Length, samlSerializer.DictionaryManager.ParentDictionary, reader.Quotas);
System.Runtime.Serialization (4)
System\Xml\XmlBinaryWriter.cs (2)
998captureText = XmlConverter.Base64Encoding.GetString(captureStream.GetBuffer(), 0, (int)captureStream.Length); 1066writer.WriteBase64Text(null, 0, captureStream.GetBuffer(), 0, (int)captureStream.Length);
System\Xml\XmlC14NWriter.cs (1)
285elementBuffer = elementStream.GetBuffer();
System\Xml\XmlMtomReader.cs (1)
1060buffer = bufferedStream.GetBuffer();
System.ServiceModel (15)
System\ServiceModel\Channels\ContextProtocol.cs (1)
91Convert.ToBase64String(stream.GetBuffer(), 0, (int)stream.Length),
System\ServiceModel\Configuration\IssuedTokenParametersElement.cs (1)
303string commentString = new UTF8Encoding().GetString(memoryStream.GetBuffer(), 0, (int)memoryStream.Length);
System\ServiceModel\Dispatcher\XmlSerializerOperationFormatter.cs (1)
216XmlDictionaryReader bufferReader = XmlDictionaryReader.CreateTextReader(memoryStream.GetBuffer(), 0, (int)memoryStream.Length, XmlDictionaryReaderQuotas.Max);
System\ServiceModel\Security\EncryptedHeaderXml.cs (1)
168encryptedData.SetUpEncryption(algorithm, new ArraySegment<byte>(source.GetBuffer(), 0, (int) source.Length));
System\ServiceModel\Security\RequestSecurityToken.cs (1)
541this.cachedWriteBuffer = stream.GetBuffer();
System\ServiceModel\Security\RequestSecurityTokenResponse.cs (1)
618this.cachedWriteBuffer = stream.GetBuffer();
System\ServiceModel\Security\SecurityAppliedMessage.cs (6)
196((IFragmentCapableXmlDictionaryWriter) writer).WriteFragment(this.startBodyFragment.GetBuffer(), 0, (int) this.startBodyFragment.Length); 207((IFragmentCapableXmlDictionaryWriter) writer).WriteFragment(this.endBodyFragment.GetBuffer(), 0, (int) this.endBodyFragment.Length); 282encryptedData.SetUpEncryption(algorithm, new ArraySegment<byte>(ms.GetBuffer(), 0, (int) ms.Length)); 321((IFragmentCapableXmlDictionaryWriter)fragmentingWriter).WriteFragment(this.startBodyFragment.GetBuffer(), 0, (int)this.startBodyFragment.Length); 322((IFragmentCapableXmlDictionaryWriter)fragmentingWriter).WriteFragment(this.endBodyFragment.GetBuffer(), 0, (int)this.endBodyFragment.Length); 437return new ArraySegment<byte>(this.stream.GetBuffer(), 0, (int) this.stream.Length);
System\ServiceModel\Security\SecurityVerifiedMessage.cs (2)
456this.decryptedBuffer = ContextImportHelper.SpliceBuffers(decryptedBodyContent, stream.GetBuffer(), (int) stream.Length, 2); 501byte[] splicedBuffer = SpliceBuffers(decryptedBuffer, stream.GetBuffer(), (int) stream.Length, wrappingDepth);
System\ServiceModel\Security\WSSecurityOneDotZeroSendSecurityHeader.cs (1)
563encryptedData.SetUpEncryption(this.encryptingSymmetricAlgorithm, new ArraySegment<byte>(stream.GetBuffer(), 0, (int) stream.Length));
System.ServiceModel.Web (1)
System\ServiceModel\Dispatcher\JsonQueryStringConverter.cs (1)
175return Encoding.UTF8.GetString(memoryStream.GetBuffer(), (int) memoryStream.Position, (int) memoryStream.Length);
System.Web (5)
Security\Cryptography\NetFXCryptoService.cs (1)
90byte[] signature = signingAlgorithm.ComputeHash(memStream.GetBuffer(), 0, (int)memStream.Length);
State\SessionStateUtil.cs (2)
192byte[] serializedBuffer = s.GetBuffer(); 204buf = s.GetBuffer();
UI\ObjectStateFormatter.cs (2)
774byte[] buffer = ms.GetBuffer(); 1180byte[] buffer = ms.GetBuffer();
System.Web.DataVisualization (1)
WebForm\ChartWebControl.cs (1)
726this.Page.Response.BinaryWrite(stream.GetBuffer());
System.Windows.Forms (1)
winforms\Managed\System\WinForms\WebBrowser.cs (1)
307return new MemoryStream(memoryStream.GetBuffer(), 0, (int)memoryStream.Length, false);
System.Workflow.Runtime (5)
Hosting\WorkflowPersistenceService.cs (2)
61gzs.Write(stream.GetBuffer(), 0, (int)stream.Length); 70result = compressedStream.GetBuffer();
System\Activities\Statements\InteropExecutor.cs (1)
387this.persistedActivityData = stream.GetBuffer();
WorkflowDefinitionDispenser.cs (2)
158xomlHashCode = MD5HashHelper.ComputeHash(xomlBytesStream.GetBuffer()); 163byte[] xomlHashCode256 = sha256Provider.ComputeHash(xomlBytesStream.GetBuffer());
System.Xml (1)
System\Xml\Resolvers\XmlPreloadedResolver.cs (1)
304Array.Copy(ms.GetBuffer(), bytes, size);
WindowsBase (6)
Base\MS\Internal\IO\Packaging\SparseMemoryStream.cs (5)
244Array.Copy(memStreamBlock.Stream.GetBuffer(), (int)(overlapBlockOffset - memStreamBlock.Offset), 611prevMemStreamBlock.Stream.Write(memStreamBlock.Stream.GetBuffer(), 0, (int) memStreamBlock.Stream.Length); 623prevMemStreamBlock.Stream.Write(memStreamBlock.Stream.GetBuffer(), (int) blockOffset, leftoverSize); 627memStreamBlock = ConstructMemoryStreamFromWriteRequest(memStreamBlock.Stream.GetBuffer(), 753targetStream.Write(memStreamBlock.Stream.GetBuffer(), 0, (int)memStreamBlock.Stream.Length);
Base\System\IO\Packaging\CompoundFile\DataSpaceManager.cs (1)
1487byte[] memoryBuffer = ((MemoryStream) ((DirtyStateTrackingStream) transformInstance.transformPrimaryStream).BaseStream).GetBuffer();