当前位置: 首页>>代码示例>>C#>>正文


C# IBuffer类代码示例

本文整理汇总了C#中IBuffer的典型用法代码示例。如果您正苦于以下问题:C# IBuffer类的具体用法?C# IBuffer怎么用?C# IBuffer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


IBuffer类属于命名空间,在下文中一共展示了IBuffer类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: PhysicalPartition

 public PhysicalPartition(PartitionDescriptor descriptor, IBuffer buffer, uint sectorSize)
 {
     _partitionNumber = descriptor.PartitionNumber;
     _parentBuffer = buffer;
     _contentBuffer = new SubBuffer(_parentBuffer, descriptor.PartitionStartingLocation * (long)sectorSize, descriptor.PartitionLength * (long)sectorSize);
     _descriptor = descriptor;
 }
开发者ID:AnotherAltr,项目名称:Rc.Core,代码行数:7,代码来源:PhysicalPartition.cs

示例2: CreateLexer

        ///<summary>
        ///
        ///            Creates lexer, that corresponds to source file text (NOT generated!) 
        ///            
        ///</summary>
        ///
        public ILexerFactory CreateLexer(ProjectFileType languageType, IBuffer buffer)
        {
            if (languageType != L4N)
                return null;

            return new XmlLexerFactory(L4NLanguageService.L4N);
        }
开发者ID:willrawls,项目名称:arp,代码行数:13,代码来源:L4NProjectFileLanguageService.cs

示例3: PdfStream

   public PdfStream(
 IBuffer body
 )
       : this(new PdfDictionary(),
   body)
   {
   }
开发者ID:jujubeast,项目名称:PDFEditor,代码行数:7,代码来源:PdfStream.cs

示例4: SetValue

        /// <summary>
        /// Sets a value of all cells in a buffer
        /// </summary>
        /// <param name="source">image source</param>
        /// <param name="value">value to set</param>
        public void SetValue(IBuffer<float> source, float value)
        {
            if (source == null) throw new ArgumentNullException("source");

            for (int i = 0, length = source.HostBuffer.Length; i < length; i++)
                source.HostBuffer[i] = value;
        }
开发者ID:JacindaChen,项目名称:TronCell,代码行数:12,代码来源:CpuProgramCore.cs

示例5: Init

 public void Init(IBuffer buffer)
 {
     m_rawData = buffer;
     m_buffer = m_rawData.Buffer;
     bufferLength = m_buffer.Length;
     m_ioIndex = 0;
 }
开发者ID:ronenbarak,项目名称:Whitelog,代码行数:7,代码来源:RawDataSerializer.cs

示例6: PsiLexerGenerated

public PsiLexerGenerated(IBuffer buffer, int startOffset, int endOffset) : this(buffer)
  {
  yy_buffer_index = startOffset;
  yy_buffer_start = startOffset;
  yy_buffer_end = startOffset;
  yy_eof_pos = endOffset + 1;
  }
开发者ID:Adam-Fogle,项目名称:agentralphplugin,代码行数:7,代码来源:psi_lex.cs

示例7: InlineImageBody

 public InlineImageBody(
     IBuffer value
     )
     : base(null)
 {
     this.value = value;
 }
开发者ID:n9,项目名称:pdfclown,代码行数:7,代码来源:InlineImageBody.cs

示例8: GetMixedLexerFactory

        public ILexerFactory GetMixedLexerFactory(IBuffer buffer, IPsiSourceFile sourceFile, PsiManager manager)
        {
            var LanguageService = RaconteurLanguage.Instance.LanguageService();

            return LanguageService == null ? null
                : LanguageService.GetPrimaryLexerFactory();
        }
开发者ID:rossbeehler,项目名称:raconteur,代码行数:7,代码来源:RaconteurProjectFileLanguageService.cs

示例9: CreateLexer

 public ILexerFactory CreateLexer(ProjectFileType languageType, IBuffer buffer) {
     //Logger.LogMessage("MappingFileProjectFileLanguageService.CreateLexer for language type {0}", languageType.Name);
     if (languageType == MAPPING_FILE) {
         return new XmlLexerFactory(MappingFileLanguageService.MAPPING_FILE);
     }
     return null;
 }
开发者ID:hazzik,项目名称:ReSharper.NHibernate,代码行数:7,代码来源:MappingFileProjectFileLanguageService.cs

示例10: SendAsync

 public void SendAsync(IBuffer buffer)
 {
     if (IsConnected && buffer.Size > 0)
     {
         Socket.SendAsync(buffer);
     }
 }
开发者ID:Q-Smith,项目名称:MS.NET-MiniNet,代码行数:7,代码来源:NetChannel.cs

示例11: HandleDataReceived

 private void HandleDataReceived(INetSocket clientSocket, IBuffer buffer)
 {
     if (buffer.Size > 0)
     {
         ReceiveData();
     }
     OnMessage(this, buffer);
 }
开发者ID:Q-Smith,项目名称:MS.NET-MiniNet,代码行数:8,代码来源:NetChannel.cs

示例12: InputAssembler

 public InputAssembler( IBuffer vertexBuffer, IVertexDeclaration vertexDeclaration, PrimitiveType primitiveType = PrimitiveType.TriangleList, IBuffer indexBuffer = null )
     : this()
 {
     PrimitiveType = primitiveType;
     VertexBuffer = vertexBuffer;
     VertexDeclaration = vertexDeclaration;
     IndexBuffer = indexBuffer;
 }
开发者ID:Daramkun,项目名称:Misty,代码行数:8,代码来源:InputAssembler.cs

示例13: ReadFully

 /// <summary>
 /// Reads the given stream up to the end, returning the data as a byte
 /// array, using the given buffer for transferring data. Note that the
 /// current contents of the buffer is ignored, so the buffer needn't
 /// be cleared beforehand.
 /// </summary>
 /// <param name="input">The stream to read from</param>
 /// <param name="buffer">The buffer to use to transfer data</param>
 /// <exception cref="ArgumentNullException">input is null</exception>
 /// <exception cref="ArgumentNullException">buffer is null</exception>
 /// <exception cref="IOException">An error occurs while reading from the stream</exception>
 /// <returns>The data read from the stream</returns>
 public static byte[] ReadFully(Stream input, IBuffer buffer)
 {
     if (buffer==null)
     {
         throw new ArgumentNullException("buffer");
     }
     return ReadFully(input, buffer.Bytes);
 }
开发者ID:dioptre,项目名称:nkd,代码行数:20,代码来源:StreamUtil.cs

示例14: Document

		protected Document (IBuffer buffer,ILineSplitter splitter)
		{
			this.buffer = buffer;
			this.splitter = splitter;
			splitter.LineChanged += SplitterLineSegmentTreeLineChanged;
			splitter.LineRemoved += HandleSplitterLineSegmentTreeLineRemoved;
			foldSegmentTree.InstallListener (this);
		}
开发者ID:okrmartin,项目名称:monodevelop,代码行数:8,代码来源:Document.cs

示例15: Document

		protected Document (IBuffer buffer,ILineSplitter splitter)
		{
			this.buffer = buffer;
			this.splitter = splitter;
			splitter.LineChanged += SplitterLineSegmentTreeLineChanged;
			splitter.LineRemoved += HandleSplitterLineSegmentTreeLineRemoved;
			foldSegmentTree.tree.NodeRemoved += HandleFoldSegmentTreetreeNodeRemoved; 
		}
开发者ID:kangaroo,项目名称:monodevelop,代码行数:8,代码来源:Document.cs


注:本文中的IBuffer类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。