Lines Matching refs:bytes

3830   int bytes;  in test_bind_text()  local
3844 if( Tcl_GetIntFromObj(interp, objv[4], &bytes) ) return TCL_ERROR; in test_bind_text()
3845 if( bytes<0 ){ in test_bind_text()
3855 rc = sqlite3_bind_text(pStmt, idx, value, bytes, SQLITE_TRANSIENT); in test_bind_text()
3883 int bytes; in test_bind_text16() local
3904 if( Tcl_GetIntFromObj(interp, oBytes, &bytes) ) return TCL_ERROR; in test_bind_text16()
3905 if( bytes<0 && xDel==SQLITE_TRANSIENT ){ in test_bind_text16()
3915 rc = sqlite3_bind_text16(pStmt, idx, (void *)value, bytes, xDel); in test_bind_text16()
3942 int bytes; in test_bind_blob() local
3962 if( Tcl_GetIntFromObj(interp, objv[4], &bytes) ) return TCL_ERROR; in test_bind_blob()
3964 if( bytes>len ){ in test_bind_blob()
3967 "cannot use %d blob bytes, have %d", bytes, len); in test_bind_blob()
3972 rc = sqlite3_bind_blob(pStmt, idx, value, bytes, xDestructor); in test_bind_blob()
4512 int bytes = 0; in test_errmsg16() local
4524 for(bytes=0; z[bytes] || z[bytes+1]; bytes+=2){} in test_errmsg16()
4526 Tcl_SetObjResult(interp, Tcl_NewByteArrayObj(zErr, bytes)); in test_errmsg16()
4547 int bytes; in test_prepare() local
4560 if( Tcl_GetIntFromObj(interp, objv[3], &bytes) ) return TCL_ERROR; in test_prepare()
4562 rc = sqlite3_prepare(db, zSql, bytes, &pStmt, objc>=5 ? &zTail : 0); in test_prepare()
4566 if( bytes>=0 ){ in test_prepare()
4567 bytes = bytes - (int)(zTail-zSql); in test_prepare()
4569 if( (int)strlen(zTail)<bytes ){ in test_prepare()
4570 bytes = (int)strlen(zTail); in test_prepare()
4572 Tcl_ObjSetVar2(interp, objv[4], 0, Tcl_NewStringObj(zTail, bytes), 0); in test_prepare()
4605 int bytes; in test_prepare_v2() local
4619 if( Tcl_GetIntFromObj(interp, objv[3], &bytes) ) return TCL_ERROR; in test_prepare_v2()
4624 if( bytes>=0 ){ in test_prepare_v2()
4625 zCopy = malloc(bytes); in test_prepare_v2()
4626 memcpy(zCopy, zSql, bytes); in test_prepare_v2()
4633 rc = sqlite3_prepare_v2(db, zCopy, bytes, &pStmt, pzTail); in test_prepare_v2()
4643 if( bytes>=0 ){ in test_prepare_v2()
4644 bytes = bytes - (int)(zTail-zSql); in test_prepare_v2()
4646 Tcl_ObjSetVar2(interp, objv[4], 0, Tcl_NewStringObj(zTail, bytes), 0); in test_prepare_v2()
4679 int bytes, flags; in test_prepare_v3() local
4693 if( Tcl_GetIntFromObj(interp, objv[3], &bytes) ) return TCL_ERROR; in test_prepare_v3()
4699 if( bytes>=0 ){ in test_prepare_v3()
4700 zCopy = malloc(bytes); in test_prepare_v3()
4701 memcpy(zCopy, zSql, bytes); in test_prepare_v3()
4708 rc = sqlite3_prepare_v3(db, zCopy, bytes, (unsigned int)flags,&pStmt,pzTail); in test_prepare_v3()
4716 if( bytes>=0 ){ in test_prepare_v3()
4717 bytes = bytes - (int)(zTail-zSql); in test_prepare_v3()
4719 Tcl_ObjSetVar2(interp, objv[5], 0, Tcl_NewStringObj(zTail, bytes), 0); in test_prepare_v3()
4798 int bytes; /* The integer specified as arg 3 */ in test_prepare16() local
4808 if( Tcl_GetIntFromObj(interp, objv[3], &bytes) ) return TCL_ERROR; in test_prepare16()
4810 rc = sqlite3_prepare16(db, zSql, bytes, &pStmt, objc>=5 ? &zTail : 0); in test_prepare16()
4858 int bytes; /* The integer specified as arg 3 */ in test_prepare16_v2() local
4868 if( Tcl_GetIntFromObj(interp, objv[3], &bytes) ) return TCL_ERROR; in test_prepare16_v2()
4870 rc = sqlite3_prepare16_v2(db, zSql, bytes, &pStmt, objc>=5 ? &zTail : 0); in test_prepare16_v2()