本文整理汇总了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;
}
示例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);
}
示例3: PdfStream
public PdfStream(
IBuffer body
)
: this(new PdfDictionary(),
body)
{
}
示例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;
}
示例5: Init
public void Init(IBuffer buffer)
{
m_rawData = buffer;
m_buffer = m_rawData.Buffer;
bufferLength = m_buffer.Length;
m_ioIndex = 0;
}
示例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;
}
示例7: InlineImageBody
public InlineImageBody(
IBuffer value
)
: base(null)
{
this.value = value;
}
示例8: GetMixedLexerFactory
public ILexerFactory GetMixedLexerFactory(IBuffer buffer, IPsiSourceFile sourceFile, PsiManager manager)
{
var LanguageService = RaconteurLanguage.Instance.LanguageService();
return LanguageService == null ? null
: LanguageService.GetPrimaryLexerFactory();
}
示例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;
}
示例10: SendAsync
public void SendAsync(IBuffer buffer)
{
if (IsConnected && buffer.Size > 0)
{
Socket.SendAsync(buffer);
}
}
示例11: HandleDataReceived
private void HandleDataReceived(INetSocket clientSocket, IBuffer buffer)
{
if (buffer.Size > 0)
{
ReceiveData();
}
OnMessage(this, buffer);
}
示例12: InputAssembler
public InputAssembler( IBuffer vertexBuffer, IVertexDeclaration vertexDeclaration, PrimitiveType primitiveType = PrimitiveType.TriangleList, IBuffer indexBuffer = null )
: this()
{
PrimitiveType = primitiveType;
VertexBuffer = vertexBuffer;
VertexDeclaration = vertexDeclaration;
IndexBuffer = indexBuffer;
}
示例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);
}
示例14: Document
protected Document (IBuffer buffer,ILineSplitter splitter)
{
this.buffer = buffer;
this.splitter = splitter;
splitter.LineChanged += SplitterLineSegmentTreeLineChanged;
splitter.LineRemoved += HandleSplitterLineSegmentTreeLineRemoved;
foldSegmentTree.InstallListener (this);
}
示例15: Document
protected Document (IBuffer buffer,ILineSplitter splitter)
{
this.buffer = buffer;
this.splitter = splitter;
splitter.LineChanged += SplitterLineSegmentTreeLineChanged;
splitter.LineRemoved += HandleSplitterLineSegmentTreeLineRemoved;
foldSegmentTree.tree.NodeRemoved += HandleFoldSegmentTreetreeNodeRemoved;
}