pike.git / lib / modules / Standards.pmod / BSON.pmod / module.pmod

version» Context lines:

pike.git/lib/modules/Standards.pmod/BSON.pmod/module.pmod:127:    }    // BSON.Timestamp instance    else if(objectp(value) && Program.inherits(object_program(value), .Timestamp))    {    buf->sprintf("%c%s%c%-8c", TYPE_TIMESTAMP, key, 0, value->get_timestamp());    }       // BSON.Binary instance    else if(objectp(value) && Program.inherits(object_program(value), .Binary))    { -  buf->sprintf("%c%s%c%-4c%c%s", TYPE_BINARY, key, 0, sizeof(value)+1, value->subtype, (string)value); +  buf->sprintf("%c%s%c%-4c%c%s", TYPE_BINARY, key, 0, sizeof(value), value->subtype, (string)value);    }    // BSON.Symbol instance    else if(objectp(value) && Program.inherits(object_program(value), .Symbol))    {    string v = (string)value;    v = string_to_utf8(v);    buf->sprintf("%c%s%c%-4c%s%c", TYPE_SYMBOL, key, 0, sizeof(v)+1, v, 0);    }    // BSON.Javascript instance    else if(objectp(value) && Program.inherits(object_program(value), .Javascript))