Package org.mozilla.jss.nss
Class Buffer
- java.lang.Object
-
- org.mozilla.jss.nss.Buffer
-
public class Buffer extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Buffer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanCanRead(BufferProxy buf)Check whether or not the buffer can be read from (i.e., is non-empty).static booleanCanWrite(BufferProxy buf)Check whether or not the buffer can be written to (i.e., is not full).static longCapacity(BufferProxy buf)Check the total capacity of a buffer object.static BufferProxyCreate(long length)Create a new j_buffer object with the specified number of bytes.static voidFree(BufferProxy buf)Destroy a buffer object, freeing its resources.static intGet(BufferProxy buf)Get a single character from the buffer.static intPut(BufferProxy buf, byte input)Put a single character into the buffer.static byte[]Read(BufferProxy buf, long length)Read the specified number of bytes from the buffer.static longReadCapacity(BufferProxy buf)Check the remaining number of bytes that can be read from the buffer.static longWrite(BufferProxy buf, byte[] input)Write the specified bytes to the buffer.static longWriteCapacity(BufferProxy buf)Check the remaining number of bytes that can be written to the buffer.
-
-
-
Method Detail
-
Create
public static BufferProxy Create(long length)
Create a new j_buffer object with the specified number of bytes. See also: jb_alloc in org/mozilla/jss/ssl/javax/j_buffer.h
-
Capacity
public static long Capacity(BufferProxy buf)
Check the total capacity of a buffer object. See also: jb_capacity in org/mozilla/jss/ssl/javax/j_buffer.h
-
CanRead
public static boolean CanRead(BufferProxy buf)
Check whether or not the buffer can be read from (i.e., is non-empty). See also: jb_can_read in org/mozilla/jss/ssl/javax/j_buffer.h
-
ReadCapacity
public static long ReadCapacity(BufferProxy buf)
Check the remaining number of bytes that can be read from the buffer. See also: jb_read_capacity in org/mozilla/jss/ssl/javax/j_buffer.h
-
CanWrite
public static boolean CanWrite(BufferProxy buf)
Check whether or not the buffer can be written to (i.e., is not full). See also: jb_can_write in org/mozilla/jss/ssl/javax/j_buffer.h
-
WriteCapacity
public static long WriteCapacity(BufferProxy buf)
Check the remaining number of bytes that can be written to the buffer. See also: jb_write_capacity in org/mozilla/jss/ssl/javax/j_buffer.h
-
Read
public static byte[] Read(BufferProxy buf, long length)
Read the specified number of bytes from the buffer. See also: jb_read in org/mozilla/jss/ssl/javax/j_buffer.h
-
Write
public static long Write(BufferProxy buf, byte[] input)
Write the specified bytes to the buffer. See also: jb_write in org/mozilla/jss/ssl/javax/j_buffer.h
-
Get
public static int Get(BufferProxy buf)
Get a single character from the buffer. See also: jb_get in org/mozilla/jss/ssl/javax/j_buffer.h
-
Put
public static int Put(BufferProxy buf, byte input)
Put a single character into the buffer. See also: jb_put in org/mozilla/jss/ssl/javax/j_buffer.h
-
Free
public static void Free(BufferProxy buf)
Destroy a buffer object, freeing its resources. See also: jb_free in org/mozilla/jss/ssl/javax/j_buffer.h
-
-