1 /*******************************************************************************
2 * Copyright (c) 2014 Ericsson
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
9 * Matthew Khouzam - Initial API and implementation
10 ******************************************************************************/
12 package org
.eclipse
.linuxtools
.ctf
.core
.tests
.io
;
14 import java
.nio
.ByteBuffer
;
16 import org
.eclipse
.jdt
.annotation
.NonNull
;
19 * Helpers for the tests
21 * @author Matthew Khouzam
23 public final class Util
{
29 * Wrapper to make sure the bytebuffer is not null
32 * a potentially null byte buffer
33 * @return a non-null byte buffer or an illegal state exception
36 public static ByteBuffer
testMemory(ByteBuffer buffer
) {
38 throw new IllegalStateException("Failed to alloc");
This page took 0.030555 seconds and 5 git commands to generate.