本文整理匯總了C#中OTFontFile.MBOBuffer.GetUshort方法的典型用法代碼示例。如果您正苦於以下問題:C# MBOBuffer.GetUshort方法的具體用法?C# MBOBuffer.GetUshort怎麽用?C# MBOBuffer.GetUshort使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類OTFontFile.MBOBuffer
的用法示例。
在下文中一共展示了MBOBuffer.GetUshort方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: Populate
// Offset is absolute within MBOBuffer
public void Populate( MBOBuffer b, uint offset )
{
unicodeValue = b.GetUint24( offset );
glyphID = b.GetUshort( offset + 3 );
}
示例2: SubHeader
public SubHeader(uint offsetSubheader, MBOBuffer bufTable)
{
firstCode = bufTable.GetUshort(offsetSubheader);
entryCount = bufTable.GetUshort(offsetSubheader + 2);
idDelta = bufTable.GetShort (offsetSubheader + 4);
idRangeOffset = bufTable.GetUshort(offsetSubheader + 6);
m_offsetSubHeader = offsetSubheader;
}
示例3: INDEXData
public INDEXData(uint offset_buf, MBOBuffer bufTable)
{
m_offset = offset_buf;
m_bufTable = bufTable;
count = m_bufTable.GetUshort(m_offset);
size = 2;
if ( count > 0 )
{
offSize = m_bufTable.GetByte(m_offset + 2 );
lastOffset = GetOffset( count );
size += (uint) offSize * ( (uint) count + 1 )
+ lastOffset;
}
}