id stringlengths 2 7 | text stringlengths 17 51.2k | title stringclasses 1
value |
|---|---|---|
c8400 | (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLint)(x), (C.GLint)(y), (C.GLsizei)(width), (C.GLsizei)(height))
} | |
c8401 | = callback
C.glowDebugMessageCallback(gpDebugMessageCallback, (C.GLDEBUGPROC)(unsafe.Pointer(&callback)), userParam)
} | |
c8402 | (C.GLenum)(mode), (C.GLint)(first), (C.GLsizei)(count), (C.GLsizei)(instancecount))
} | |
c8403 | {
C.glowDrawElementsInstanced(gpDrawElementsInstanced, (C.GLenum)(mode), (C.GLsizei)(count), (C.GLenum)(xtype), indices, (C.GLsizei)(instancecount))
} | |
c8404 | (C.GLenum)(target), (C.GLenum)(attachment), (C.GLuint)(texture), (C.GLint)(level))
} | |
c8405 | (C.GLenum)(target), (C.GLenum)(pname), (*C.GLint64)(unsafe.Pointer(params)))
} | |
c8406 | {
C.glowGetColorTable(gpGetColorTable, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), table)
} | |
c8407 | {
C.glowGetConvolutionFilter(gpGetConvolutionFilter, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), image)
} | |
c8408 | (C.GLuint)(program), (*C.GLchar)(unsafe.Pointer(name)))
return (int32)(ret)
} | |
c8409 | (C.GLboolean)(boolToInt(reset)), (C.GLenum)(format), (C.GLenum)(xtype), values)
} | |
c8410 | (C.GLboolean)(boolToInt(reset)), (C.GLenum)(format), (C.GLenum)(xtype), values)
} | |
c8411 | C.glowGetSeparableFilter(gpGetSeparableFilter, (C.GLenum)(target), (C.GLenum)(format), (C.GLenum)(xtype), row, column, span)
} | |
c8412 | (C.GLuint)(program), (C.GLuint)(index), (C.GLsizei)(bufSize), (*C.GLsizei)(unsafe.Pointer(length)), (*C.GLsizei)(unsafe.Pointer(size)), (*C.GLenum)(unsafe.Pointer(xtype)), (*C.GLchar)(unsafe.Pointer(name)))
} | |
c8413 | (C.GLenum)(target), (C.GLsizei)(width), (C.GLenum)(internalformat), (C.GLboolean)(boolToInt(sink)))
} | |
c8414 | (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLboolean)(boolToInt(sink)))
} | |
c8415 | (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLsizei)(width), (C.GLsizei)(height), (C.GLenum)(format), (C.GLenum)(xtype), row, column)
} | |
c8416 | {
C.glowTexBuffer(gpTexBuffer, (C.GLenum)(target), (C.GLenum)(internalformat), (C.GLuint)(buffer))
} | |
c8417 | (C.GLuint)(program), (C.GLsizei)(count), (**C.GLchar)(unsafe.Pointer(varyings)), (C.GLenum)(bufferMode))
} | |
c8418 | ribDivisor, (C.GLuint)(index), (C.GLuint)(divisor))
} | |
c8419 | {
C.glowGetnCompressedTexImage(gpGetnCompressedTexImage, (C.GLenum)(target), (C.GLint)(lod), (C.GLsizei)(bufSize), pixels)
} | |
c8420 | (C.GLint)(level), (C.GLenum)(format), (C.GLenum)(xtype), (C.GLsizei)(bufSize), pixels)
} | |
c8421 |
hc := newHandlerConn()
hc.runHandler(handler)
return hc, nil
},
}
} | |
c8422 |
hc := newHandlerConn()
hc.runFastHandler(handler)
return hc, nil
},
}
} | |
c8423 | bufio.NewReadWriter(bufio.NewReader(r.conn), bufio.NewWriter(r.conn))
return r.conn, rw, nil
} | |
c8424 | := http.Response{StatusCode: code, Header: r.Header()}
_ = resp.Write(r.conn)
} | |
c8425 |
return m.typ, m.content, m.closeCode
} | |
c8426 | {
return http.NewRequest(method, urlStr, body)
} | |
c8427 | pathargs...)
for _, builder := range e.builders {
builder(req)
}
for _, matcher := range e.matchers {
req.WithMatcher(matcher)
}
return req
} | |
c8428 | "", contentType)
r.checkEqual("body", "", string(r.content))
return r
} | |
c8429 | r.checkContentType(mediaType, charset...)
return r
} | |
c8430 | header", encoding, r.resp.Header["Content-Encoding"])
return r
} | |
c8431 | {
return r
}
r.checkEqual("\"Transfer-Encoding\" header", encoding, r.resp.TransferEncoding)
return r
} | |
c8432 | makeWebsocket(config, makeChain(config.Reporter), conn)
} | |
c8433 | c.readTimeout = timeout
return c
} | |
c8434 | c.writeTimeout = timeout
return c
} | |
c8435 | s.value = c.conn.Subprotocol()
}
return s
} | |
c8436 | "\n", -1)
lines := strings.SplitN(text, "\n", 2)
p.logger.Logf("%s %s\n%s", lines[0], duration, lines[1])
} | |
c8437 |
if typ == websocket.BinaryMessage {
fmt.Fprintf(b, "%v\n", content)
} else {
fmt.Fprintf(b, "%s\n", content)
}
}
fmt.Fprintf(b, "\n")
p.logger.Logf(b.String())
} | |
c8438 | d.chain.fail("expected duration is not set, but it is")
}
return d
} | |
c8439 | mt, message, err := c.ReadMessage()
if err != nil {
break
}
err = c.WriteMessage(mt, message)
if err != nil {
break
}
}
} | |
c8440 | }
err = c.WriteMessage(mt, message)
if err != nil {
break
}
}
})
err := upgrader.Upgrade(ctx)
if err != nil {
panic(err)
}
} | |
c8441 | if err != nil {
return nil, err
}
dbType, err := getDBType(reader)
return &Reader{reader, dbType}, err
} | |
c8442 | {
return core.Round(float64(float64(val) * 1000.00 / float64(unitsPerEm)))
} | |
c8443 | i.SetImage(file)
if err != nil {
return err
}
return nil
} | |
c8444 | err
}
i.rawImgReader = bytes.NewReader(data)
return nil
} | |
c8445 |
return false, nil
}
if kval, ok := k.Kerning[left]; ok {
return true, &kval
}
return false, nil
} | |
c8446 | := s.ttfp.Parse(ttfpath)
if err != nil {
return err
}
return nil
} | |
c8447 | := s.ttfp.ParseByReader(rd)
if err != nil {
return err
}
return nil
} | |
c8448 | nil {
return err
}
s.CharacterToGlyphIndex.Set(runeValue, glyphIndex) // [runeValue] = glyphIndex
}
return nil
} | |
c8449 | ok := s.CharacterToGlyphIndex.Val(r)
if ok {
return glyIndex, nil
}
return 0, ErrCharNotFound
} | |
c8450 | return gIndex, nil
} else {
gIndex, err := s.charCodeToGlyphIndexFormat12(r)
if err != nil {
return 0, err
}
return gIndex, nil
}
} | |
c8451 | := s.ttfp.Widths()[glyphIndex]
if unitsPerEm == 1000 {
return width
}
return width * 1000 / unitsPerEm
} | |
c8452 |
if (flags & MORE_COMPONENTS) == 0 {
return
}
offsetAppend := 4
if (flags & ARG_1_AND_2_ARE_WORDS) == 0 {
offsetAppend = 2
}
if (flags & WE_HAVE_A_SCALE) != 0 {
offsetAppend += 2
} else if (flags & WE_HAVE_AN_X_AND_Y_SCALE) != 0 {
offsetAppend += 4
}
if (flags & WE_HAVE_A_TWO_BY_TWO) != 0... | |
c8453 |
offset := int(glyf.Offset + ttfp.LocaTable[glyph])
return offset
} | |
c8454 |
i++
byte0 += uint64(data[i])
i++
}
//var result uint32
result := uint32(byte3<<24) + uint32(byte2<<16) + uint32(byte1<<8) + uint32(byte0)
return uint(result)
} | |
c8455 | &top, &right, &bottom)
gp.margins = Margins{left, top, right, bottom}
} | |
c8456 | = gp.UnitsToPoints(margin)
} | |
c8457 | = gp.UnitsToPoints(margin)
} | |
c8458 | = gp.UnitsToPoints(margin)
} | |
c8459 | float64) {
gp.margins.Bottom = gp.UnitsToPoints(margin)
} | |
c8460 | gp.PointsToUnits(gp.margins.Right),
gp.PointsToUnits(gp.margins.Bottom)
} | |
c8461 |
return true, val
}
return false, 0
} | |
c8462 |
c := byte(v >> 8)
d := byte(v)
_, err := w.Write([]byte{a, b, c, d})
if err != nil {
return err
}
return nil
} | |
c8463 | b})
if err != nil {
return err
}
return nil
} | |
c8464 |
_, err := w.Write(b)
if err != nil {
return err
}
return nil
} | |
c8465 | MapOfCharacterToGlyphIndex
m.keyIndexs = make(map[rune]int)
return &m
} | |
c8466 | }*/
if _, ok := m.keyIndexs[k]; ok {
return true
}
return false
} | |
c8467 |
m.keyIndexs[k] = len(m.Keys)
m.Keys = append(m.Keys, k)
m.Vals = append(m.Vals, v)
} | |
c8468 | }*/
if index, ok := m.keyIndexs[k]; ok {
return index, true
}
return -1, false
} | |
c8469 | {
return 0, false
}
return m.Vals[i], true
} | |
c8470 | setXCount,
x: x,
y: y,
pageheight: c.getRoot().curr.pageSize.H,
contentType: ContentTypeText,
lineWidth: c.getRoot().curr.lineWidth,
}
var err error
c.getRoot().curr.X, c.getRoot().curr.Y, err = c.listCache.appendContentText(cache, text)
if err != nil {
return er... | |
c8471 | m %0.2f %0.2f l s\n", x1, h-y1, x2, h-y2))
var cache cacheContentLine
cache.pageHeight = c.getRoot().curr.pageSize.H
cache.x1 = x1
cache.y1 = y1
cache.x2 = x2
cache.y2 = y2
c.listCache.append(&cache)
} | |
c8472 |
cache.pageHeight = c.getRoot().curr.pageSize.H
cache.x1 = x1
cache.y1 = y1
cache.x2 = x2
cache.y2 = y2
c.listCache.append(&cache)
} | |
c8473 |
var cache cacheContentGray
cache.grayType = grayTypeFill
cache.scale = w
c.listCache.append(&cache)
} | |
c8474 |
var cache cacheContentGray
cache.grayType = grayTypeStroke
cache.scale = w
c.listCache.append(&cache)
} | |
c8475 | colorTypeStroke
cache.r = r
cache.g = g
cache.b = b
c.listCache.append(&cache)
} | |
c8476 | colorTypeFill
cache.r = r
cache.g = g
cache.b = b
c.listCache.append(&cache)
} | |
c8477 | = index
c.listCache.append(&cache)
//c.stream.WriteString(fmt.Sprintf("q %0.2f 0 0 %0.2f %0.2f %0.2f cm /I%d Do Q\n", rect.W, rect.H, x, h-(y+rect.H), index+1))
} | |
c8478 |
return u * conversion_Unit_MM
case Unit_CM:
return u * conversion_Unit_CM
case Unit_IN:
return u * conversion_Unit_IN
default:
return u
}
} | |
c8479 |
*u[x] = UnitsToPoints(t, *u[x])
}
} | |
c8480 |
*u[x] = PointsToUnits(t, *u[x])
}
} | |
c8481 | len(*re)
for i < max {
if (*re)[i].Family == family && (*re)[i].Style == style {
return true
}
i++
}
return false
} | |
c8482 | []byte, ownerPass []byte) error {
return p.setProtection(permissions, userPass, ownerPass)
} | |
c8483 | += ifont.GetCw()[bs[i]]
i++
}
return float64(w) * (float64(fontSize) / 1000.0)
} | |
c8484 | v int64
if u >= 0x8000 {
v = int64(u) - 65536
} else {
v = int64(u)
}
return v, 2
} | |
c8485 | := data[offset : offset+2]
num := big.NewInt(0)
num.SetBytes(buff)
return num.Uint64(), 2
} | |
c8486 | grayFill,
fontCountIndex: fontCountIndex,
fontSize: fontSize,
fontStyle: fontStyle,
setXCount: setXCount,
x: x,
y: y,
pageheight: pageheight,
contentType: ContentTypeCell,
cellOpt: cellOpt,
lineWidth: lineWidth,
}
} | |
c8487 | {
return t.parse(rd)
} | |
c8488 | {
return ErrTableNotFound
}
val := table.Offset
_, err := fd.Seek(int64(val), 0)
if err != nil {
return err
}
return nil
} | |
c8489 | t.Read(fd, 2)
if err != nil {
return 0, err
}
n := binary.BigEndian.Uint16(buff)
return uint(n), nil
} | |
c8490 | if u >= 0x8000 {
v = int(u) - 65536
} else {
v = int(u)
}
return v, nil
} | |
c8491 | != nil {
return 0, err
}
return int16(n), nil
} | |
c8492 | {
return 0, err
}
n := binary.BigEndian.Uint32(buff)
return uint(n), nil
} | |
c8493 | = grayScale
gp.getContent().AppendStreamSetGrayFill(grayScale)
} | |
c8494 | = grayScale
gp.getContent().AppendStreamSetGrayStroke(grayScale)
} | |
c8495 | gp.AddTTFFontByReaderWithOption(family, rd, defaultTtfFontOption())
} | |
c8496 |
return gp
})
cidfont.SetPtrToSubsetFontObj(subsetFont)
cidfont.SetIndexObjSubfontDescriptor(subfontdescindex)
cidindex := gp.addObj(cidfont)
subsetFont.SetIndexObjCIDFont(cidindex)
subsetFont.SetIndexObjUnicodeMap(unicodeindex)
index := gp.addObj(subsetFont) //add หลังสุด
if gp.indexOfProcSet != -1 {
pro... | |
c8497 | ok {
if sub.GetFamily() == family {
sub.funcKernOverride = fn
return nil
}
}
}
i++
}
return errors.New("font family not found")
} | |
c8498 | gp.getContent().AppendStreamSetColorStroke(r, g, b)
} | |
c8499 | gp.getContent().AppendStreamSetColorFill(r, g, b)
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.