Tabnine Logo
DefaultClassResolver.writeName
Code IndexAdd Tabnine to your IDE (free)

How to use
writeName
method
in
com.esotericsoftware.kryo.util.DefaultClassResolver

Best Java code snippets using com.esotericsoftware.kryo.util.DefaultClassResolver.writeName (Showing top 4 results out of 315)

origin: com.esotericsoftware.kryo/kryo

public Registration writeClass (Output output, Class type) {
  if (type == null) {
    if (TRACE || (DEBUG && kryo.getDepth() == 1)) log("Write", null);
    output.writeVarInt(Kryo.NULL, true);
    return null;
  }
  Registration registration = kryo.getRegistration(type);
  if (registration.getId() == NAME)
    writeName(output, type, registration);
  else {
    if (TRACE) trace("kryo", "Write class " + registration.getId() + ": " + className(type));
    output.writeVarInt(registration.getId() + 2, true);
  }
  return registration;
}
origin: com.esotericsoftware/kryo

public Registration writeClass (Output output, Class type) {
  if (type == null) {
    if (TRACE || (DEBUG && kryo.getDepth() == 1)) log("Write", null);
    output.writeVarInt(Kryo.NULL, true);
    return null;
  }
  Registration registration = kryo.getRegistration(type);
  if (registration.getId() == NAME)
    writeName(output, type, registration);
  else {
    if (TRACE) trace("kryo", "Write class " + registration.getId() + ": " + className(type));
    output.writeVarInt(registration.getId() + 2, true);
  }
  return registration;
}
origin: com.esotericsoftware/kryo-shaded

public Registration writeClass (Output output, Class type) {
  if (type == null) {
    if (TRACE || (DEBUG && kryo.getDepth() == 1)) log("Write", null);
    output.writeVarInt(Kryo.NULL, true);
    return null;
  }
  Registration registration = kryo.getRegistration(type);
  if (registration.getId() == NAME)
    writeName(output, type, registration);
  else {
    if (TRACE) trace("kryo", "Write class " + registration.getId() + ": " + className(type));
    output.writeVarInt(registration.getId() + 2, true);
  }
  return registration;
}
origin: svn2github/kryo

public Registration writeClass (Output output, Class type) {
  if (type == null) {
    if (TRACE || (DEBUG && kryo.getDepth() == 1)) log("Write", null);
    output.writeVarInt(Kryo.NULL, true);
    return null;
  }
  Registration registration = kryo.getRegistration(type);
  if (registration.getId() == NAME)
    writeName(output, type, registration);
  else {
    if (TRACE) trace("kryo", "Write class " + registration.getId() + ": " + className(type));
    output.writeVarInt(registration.getId() + 2, true);
  }
  return registration;
}
com.esotericsoftware.kryo.utilDefaultClassResolverwriteName

Popular methods of DefaultClassResolver

  • <init>
  • getTypeByName
  • readName
  • register
  • getRegistration
  • writeClass

Popular in Java

  • Start an intent from android
  • scheduleAtFixedRate (ScheduledExecutorService)
  • orElseThrow (Optional)
    Return the contained value, if present, otherwise throw an exception to be created by the provided s
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • ConnectException (java.net)
    A ConnectException is thrown if a connection cannot be established to a remote host on a specific po
  • MessageDigest (java.security)
    Uses a one-way hash function to turn an arbitrary number of bytes into a fixed-length byte sequence.
  • Callable (java.util.concurrent)
    A task that returns a result and may throw an exception. Implementors define a single method with no
  • JList (javax.swing)
  • Join (org.hibernate.mapping)
  • Option (scala)
  • Top 17 Plugins for Android Studio
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