本文整理汇总了C#中com.allocConcatBuffer方法的典型用法代码示例。如果您正苦于以下问题:C# com.allocConcatBuffer方法的具体用法?C# com.allocConcatBuffer怎么用?C# com.allocConcatBuffer使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com
的用法示例。
在下文中一共展示了com.allocConcatBuffer方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: WriterBasedJsonGenerator
public WriterBasedJsonGenerator(com.fasterxml.jackson.core.io.IOContext ctxt, int
features, com.fasterxml.jackson.core.ObjectCodec codec, System.IO.TextWriter w)
: base(ctxt, features, codec)
{
/*
/**********************************************************
/* Output buffering
/**********************************************************
*/
/*
/**********************************************************
/* Life-cycle
/**********************************************************
*/
_writer = w;
_outputBuffer = ctxt.allocConcatBuffer();
_outputEnd = _outputBuffer.Length;
}
示例2: UTF8JsonGenerator
public UTF8JsonGenerator(com.fasterxml.jackson.core.io.IOContext ctxt, int features
, com.fasterxml.jackson.core.ObjectCodec codec, Sharpen.OutputStream @out)
: base(ctxt, features, codec)
{
// intermediate copies only made up to certain length...
/*
/**********************************************************
/* Output buffering
/**********************************************************
*/
/*
/**********************************************************
/* Quick flags
/**********************************************************
*/
/*
/**********************************************************
/* Life-cycle
/**********************************************************
*/
_outputStream = @out;
_bufferRecyclable = true;
_outputBuffer = ctxt.allocWriteEncodingBuffer();
_outputEnd = _outputBuffer.Length;
/* To be exact, each char can take up to 6 bytes when escaped (Unicode
* escape with backslash, 'u' and 4 hex digits); but to avoid fluctuation,
* we will actually round down to only do up to 1/8 number of chars
*/
_outputMaxContiguous = _outputEnd >> 3;
_charBuffer = ctxt.allocConcatBuffer();
_charBufferLength = _charBuffer.Length;
// By default we use this feature to determine additional quoting
if (isEnabled(com.fasterxml.jackson.core.JsonGenerator.Feature.ESCAPE_NON_ASCII))
{
setHighestNonEscapedChar(127);
}
_cfgUnqNames = !com.fasterxml.jackson.core.JsonGenerator.Feature.QUOTE_FIELD_NAMES
.enabledIn(features);
}