in lib/protocol/plain_buffer_coded_stream.js [415:437]
writeColumnValue: function (value) {
if (value instanceof Int64buf.Int64LE) {
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_INTEGER);
this.outputStream.writeInt64LE(value);
} else if (typeof (value) === 'string') {
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_STRING);
this.outputStream.writeRawLittleEndian32(TableStore.util.string.byteLength(value));
this.outputStream.writeBytes(value);
} else if (value instanceof Buffer) {
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_BLOB);
this.outputStream.writeRawLittleEndian32(value.length);
this.outputStream.writeBytes(value);
} else if (typeof (value) === 'boolean') {
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_BOOLEAN);
this.outputStream.writeBoolean(value);
} else if (typeof (value) === 'number') {
this.outputStream.writeRawByte(TableStore.plainBufferConsts.VT_DOUBLE);
this.outputStream.writeDouble(value);
} else {
throw new Error("Unsupported column type: " + typeof (value));
}
},