Package org.mozilla.jss.nss
Class Buffer
java.lang.Object
org.mozilla.jss.nss.Buffer
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
CanRead
(BufferProxy buf) Check whether or not the buffer can be read from (i.e., is non-empty).static boolean
CanWrite
(BufferProxy buf) Check whether or not the buffer can be written to (i.e., is not full).static long
Capacity
(BufferProxy buf) Check the total capacity of a buffer object.static BufferProxy
Create
(long length) Create a new j_buffer object with the specified number of bytes.static void
Free
(BufferProxy buf) Destroy a buffer object, freeing its resources.static int
Get
(BufferProxy buf) Get a single character from the buffer.static int
Put
(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 long
ReadCapacity
(BufferProxy buf) Check the remaining number of bytes that can be read from the buffer.static long
Write
(BufferProxy buf, byte[] input) Write the specified bytes to the buffer.static long
WriteCapacity
(BufferProxy buf) Check the remaining number of bytes that can be written to the buffer.
-
Constructor Details
-
Buffer
public Buffer()
-
-
Method Details
-
Create
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
Check the total capacity of a buffer object. See also: jb_capacity in org/mozilla/jss/ssl/javax/j_buffer.h -
CanRead
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
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
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
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
Read the specified number of bytes from the buffer. See also: jb_read in org/mozilla/jss/ssl/javax/j_buffer.h -
Write
Write the specified bytes to the buffer. See also: jb_write in org/mozilla/jss/ssl/javax/j_buffer.h -
Get
Get a single character from the buffer. See also: jb_get in org/mozilla/jss/ssl/javax/j_buffer.h -
Put
Put a single character into the buffer. See also: jb_put in org/mozilla/jss/ssl/javax/j_buffer.h -
Free
Destroy a buffer object, freeing its resources. See also: jb_free in org/mozilla/jss/ssl/javax/j_buffer.h
-