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


C++ InStream::in_sint16_le方法代码示例

本文整理汇总了C++中InStream::in_sint16_le方法的典型用法代码示例。如果您正苦于以下问题:C++ InStream::in_sint16_le方法的具体用法?C++ InStream::in_sint16_le怎么用?C++ InStream::in_sint16_le使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在InStream的用法示例。


在下文中一共展示了InStream::in_sint16_le方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。

示例1: RDPMultiDstBlt

 RDPMultiDstBlt(int16_t nLeftRect, int16_t nTopRect, int16_t nWidth, int16_t nHeight, uint8_t bRop, uint8_t nDeltaEntries,
     InStream & deltaEncodedRectangles)
 : nLeftRect(nLeftRect)
 , nTopRect(nTopRect)
 , nWidth(nWidth)
 , nHeight(nHeight)
 , bRop(bRop)
 , nDeltaEntries(nDeltaEntries) {
     ::memset(this->deltaEncodedRectangles, 0, sizeof(this->deltaEncodedRectangles));
     for (int i = 0; i < this->nDeltaEntries; i++) {
         this->deltaEncodedRectangles[i].leftDelta = deltaEncodedRectangles.in_sint16_le();
         this->deltaEncodedRectangles[i].topDelta  = deltaEncodedRectangles.in_sint16_le();
         this->deltaEncodedRectangles[i].width     = deltaEncodedRectangles.in_sint16_le();
         this->deltaEncodedRectangles[i].height    = deltaEncodedRectangles.in_sint16_le();
     }
 }
开发者ID:,项目名称:,代码行数:16,代码来源:

示例2: process_glyphcache

inline void process_glyphcache(GlyphCache & gly_cache, InStream & stream) {
    const uint8_t cacheId = stream.in_uint8();
    const uint8_t nglyphs = stream.in_uint8();
    for (uint8_t i = 0; i < nglyphs; i++) {
        const uint16_t cacheIndex = stream.in_uint16_le();
        const int16_t  offset     = stream.in_sint16_le();
        const int16_t  baseline   = stream.in_sint16_le();
        const uint16_t width      = stream.in_uint16_le();
        const uint16_t height     = stream.in_uint16_le();

        const unsigned int   datasize = (height * nbbytes(width) + 3) & ~3;
        const uint8_t      * data     = stream.in_uint8p(datasize);

        server_add_char(gly_cache, cacheId, cacheIndex, offset, baseline, width, height, data);
    }
}
开发者ID:pykoder,项目名称:redemption,代码行数:16,代码来源:test_RDPDrawable.cpp

示例3: RDPPolygonCB

 RDPPolygonCB(int16_t xStart, int16_t yStart, uint8_t bRop2, uint8_t fillMode,
              RDPColor backColor, RDPColor foreColor, const RDPBrush & brush,
              uint8_t NumDeltaEntries, InStream & deltaPoints)
     : xStart(xStart)
     , yStart(yStart)
     , bRop2(bRop2)
     , fillMode(fillMode)
     , backColor(backColor)
     , foreColor(foreColor)
     , brush(brush)
     , NumDeltaEntries(0)
 {
     this->NumDeltaEntries = std::min<uint8_t>(NumDeltaEntries, sizeof(this->deltaPoints) / sizeof(this->deltaPoints[0]));
     ::memset(this->deltaPoints, 0, sizeof(this->deltaPoints));
     for (int i = 0; i < this->NumDeltaEntries; i++) {
         this->deltaPoints[i].xDelta = deltaPoints.in_sint16_le();
         this->deltaPoints[i].yDelta = deltaPoints.in_sint16_le();
     }
 }
开发者ID:pykoder,项目名称:redemption,代码行数:19,代码来源:RDPOrdersPrimaryPolygonCB.hpp


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