congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
VisibleBufferedInputStream.scanCStringLength
Code IndexAdd Tabnine to your IDE (free)

How to use
scanCStringLength
method
in
org.postgresql.core.VisibleBufferedInputStream

Best Java code snippets using org.postgresql.core.VisibleBufferedInputStream.scanCStringLength (Showing top 4 results out of 315)

origin: org.postgresql/postgresql

/**
 * Receives a null-terminated string from the backend. If we don't see a null, then we assume
 * something has gone wrong.
 *
 * @return string from back end
 * @throws IOException if an I/O error occurs, or end of file
 */
public String receiveString() throws IOException {
 int len = pg_input.scanCStringLength();
 String res = encoding.decode(pg_input.getBuffer(), pg_input.getIndex(), len - 1);
 pg_input.skip(len);
 return res;
}
origin: postgresql/postgresql

/**
 * Receives a null-terminated string from the backend. If we don't see a
 * null, then we assume something has gone wrong.
 *
 * @return string from back end
 * @exception IOException if an I/O error occurs, or end of file
 */
public String ReceiveString() throws IOException
{
  int len = pg_input.scanCStringLength();
  String res = encoding.decode(pg_input.getBuffer(), pg_input.getIndex(),
                 len - 1);
  pg_input.skip(len);
  return res;
}
origin: org.ancoron.postgresql/org.postgresql.osgi

/**
 * Receives a null-terminated string from the backend. If we don't see a
 * null, then we assume something has gone wrong.
 *
 * @return string from back end
 * @exception IOException if an I/O error occurs, or end of file
 */
public String ReceiveString() throws IOException
{
  int len = pg_input.scanCStringLength();
  String res = encoding.decode(pg_input.getBuffer(), pg_input.getIndex(),
                 len - 1);
  pg_input.skip(len);
  return res;
}
origin: org.ancoron.postgresql/org.postgresql

/**
 * Receives a null-terminated string from the backend. If we don't see a
 * null, then we assume something has gone wrong.
 *
 * @return string from back end
 * @exception IOException if an I/O error occurs, or end of file
 */
public String ReceiveString() throws IOException
{
  int len = pg_input.scanCStringLength();
  String res = encoding.decode(pg_input.getBuffer(), pg_input.getIndex(),
                 len - 1);
  pg_input.skip(len);
  return res;
}
org.postgresql.coreVisibleBufferedInputStreamscanCStringLength

Javadoc

Scans the length of the next null terminated string (C-style string) from the stream.

Popular methods of VisibleBufferedInputStream

  • <init>
    Creates a new buffer around the given stream.
  • available
  • close
  • compact
    Compacts the unread bytes of the buffer to the beginning of the buffer.
  • doubleBuffer
    Doubles the size of the buffer.
  • ensureBytes
    Ensures that the buffer contains at least n bytes. This method invalidates the buffer and index fiel
  • getBuffer
    Returns direct handle to the used buffer. Use the #ensureBytesto prefill required bytes the buffer a
  • getIndex
    Returns the current read position in the buffer.
  • moveBufferTo
    Moves bytes from the buffer to the begining of the destination buffer. Also sets the index and endIn
  • read
  • readMore
    Reads more bytes into the buffer.
  • skip
  • readMore,
  • skip,
  • peek

Popular in Java

  • Reactive rest calls using spring rest template
  • getExternalFilesDir (Context)
  • getSharedPreferences (Context)
  • addToBackStack (FragmentTransaction)
  • Permission (java.security)
    Legacy security code; do not use.
  • DateFormat (java.text)
    Formats or parses dates and times.This class provides factories for obtaining instances configured f
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JCheckBox (javax.swing)
  • JList (javax.swing)
  • Location (org.springframework.beans.factory.parsing)
    Class that models an arbitrary location in a Resource.Typically used to track the location of proble
  • Top 25 Plugins for Webstorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now