2013-04-17 00:00:59 -04:00
|
|
|
/* -*- mode: C++; c-basic-offset: 4; indent-tabs-mode: nil -*- */
|
|
|
|
// vim: ft=cpp:expandtab:ts=8:sw=4:softtabstop=4:
|
2013-04-17 00:00:35 -04:00
|
|
|
#ident "$Id$"
|
2013-04-17 00:00:59 -04:00
|
|
|
#ident "Copyright (c) 2007-2012 Tokutek Inc. All rights reserved."
|
2013-04-17 00:00:35 -04:00
|
|
|
|
|
|
|
|
|
|
|
#include <toku_portability.h>
|
|
|
|
#include "fttypes.h"
|
|
|
|
#include "xids.h"
|
|
|
|
#include "ft_msg.h"
|
|
|
|
|
|
|
|
|
2013-04-17 00:01:01 -04:00
|
|
|
uint32_t
|
2013-04-17 00:00:35 -04:00
|
|
|
ft_msg_get_keylen(FT_MSG ft_msg) {
|
2013-04-17 00:01:01 -04:00
|
|
|
uint32_t rval = ft_msg->u.id.key->size;
|
2013-04-17 00:00:35 -04:00
|
|
|
return rval;
|
|
|
|
}
|
|
|
|
|
2013-04-17 00:01:01 -04:00
|
|
|
uint32_t
|
2013-04-17 00:00:35 -04:00
|
|
|
ft_msg_get_vallen(FT_MSG ft_msg) {
|
2013-04-17 00:01:01 -04:00
|
|
|
uint32_t rval = ft_msg->u.id.val->size;
|
2013-04-17 00:00:35 -04:00
|
|
|
return rval;
|
|
|
|
}
|
|
|
|
|
|
|
|
XIDS
|
|
|
|
ft_msg_get_xids(FT_MSG ft_msg) {
|
|
|
|
XIDS rval = ft_msg->xids;
|
|
|
|
return rval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void *
|
|
|
|
ft_msg_get_key(FT_MSG ft_msg) {
|
|
|
|
void * rval = ft_msg->u.id.key->data;
|
|
|
|
return rval;
|
|
|
|
}
|
|
|
|
|
|
|
|
void *
|
|
|
|
ft_msg_get_val(FT_MSG ft_msg) {
|
|
|
|
void * rval = ft_msg->u.id.val->data;
|
|
|
|
return rval;
|
|
|
|
}
|
|
|
|
|
|
|
|
enum ft_msg_type
|
|
|
|
ft_msg_get_type(FT_MSG ft_msg) {
|
|
|
|
enum ft_msg_type rval = ft_msg->type;
|
|
|
|
return rval;
|
|
|
|
}
|
|
|
|
|