bson/_cbsonmodule.c
/* Just make this compatible w/ the old API. */
Just make this compatible w/ the old API.
Just make this compatible w / the old API .
int buffer_write_bytes(buffer_t buffer, const char* data, int size) {
    if (buffer_write(buffer, data, size)) {
        PyErr_NoMemory();
        return 0;
    }
    return 1;
}
int buffer_write_bytes ( buffer_t buffer , const char * data , int size ) { if ( buffer_write ( buffer , data , size ) ) { PyErr_NoMemory ( ) ; return 0 ; } return 1 ; }
Just make this compatible w/ the old API.
Just make this compatible w / the old API .