// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
func convertToMBuf(logger *logger.Logger, m *C.rmr_mbuf_t) *MBuf {
payloadArr := C.GoBytes(unsafe.Pointer(m.payload),C.int(m.len))
func convertToMBuf(logger *logger.Logger, m *C.rmr_mbuf_t) *MBuf {
payloadArr := C.GoBytes(unsafe.Pointer(m.payload),C.int(m.len))
// Trim padding (space and 0)
xActionStr := strings.TrimRight(string(xActionArr),"\040\000")
// Trim padding (space and 0)
xActionStr := strings.TrimRight(string(xActionArr),"\040\000")