// ResultBlob sets the result of an SQL function. // (See sqlite3_result_blob, http://sqlite.org/c3ref/result_blob.html) func (c *Context) ResultBlob(b []byte) { var p *byte if len(b) > 0 { p = &b[0] } C.my_result_blob(c.sc, unsafe.Pointer(p), C.int(len(b))) }
// ResultBlob sets the result of an SQL function. // (See sqlite3_result_blob, http://sqlite.org/c3ref/result_blob.html) func (c *Context) ResultBlob(b []byte) { if i64 && len(b) > math.MaxInt32 { C.sqlite3_result_error_toobig((*C.sqlite3_context)(c)) return } var p *byte if len(b) > 0 { p = &b[0] } C.my_result_blob((*C.sqlite3_context)(c), unsafe.Pointer(p), C.int(len(b))) }