Tabnine Logo
CGlobalDataFactory
Code IndexAdd Tabnine to your IDE (free)

How to use
CGlobalDataFactory
in
com.oracle.svm.core.c

Best Java code snippets using com.oracle.svm.core.c.CGlobalDataFactory (Showing top 7 results out of 315)

origin: com.oracle.substratevm/svm

/**
 * Create a chunk of zero-initialized bytes with at least the length that is provided by the
 * specified supplier.
 */
public static <T extends PointerBase> CGlobalData<T> createBytes(IntSupplier sizeSupplier) {
  return createBytes(sizeSupplier, null);
}
origin: com.oracle.substratevm/svm

/**
 * Create a chunk of data that is dimensioned and initialized to contain the provided string's
 * contents as {@linkplain Utf8#stringToUtf8(String, boolean) zero-terminated modified UTF-8}.
 */
public static <T extends PointerBase> CGlobalData<T> createCString(String content) {
  return createCString(content, null);
}
origin: com.oracle.substratevm/svm

/**
 * Create a single word that is initialized to the specified value.
 */
public static <T extends PointerBase> CGlobalData<T> createWord(WordBase initialValue) {
  return createWord(initialValue, null);
}
origin: com.oracle.substratevm/svm

public CGlobalDataInfo addOrLookupMethod(ResolvedJavaMethod method) {
  if (method.getAnnotation(NodeIntrinsic.class) != null || method.getAnnotation(Word.Operation.class) != null) {
    return null;
  }
  return nameToFunction.computeIfAbsent(linkageName(method), symbolName -> {
    CGlobalData<CFunctionPointer> linkage = CGlobalDataFactory.forSymbol(symbolName);
    return CGlobalDataFeature.singleton().registerAsAccessed(linkage);
  });
}
origin: com.oracle.substratevm/library-support

public CGlobalDataInfo getBuiltInAddress() {
  assert this.isBuiltInFunction();
  if (builtInAddress == null) {
    CGlobalData<CFunctionPointer> linkage = CGlobalDataFactory.forSymbol(this.getShortName());
    builtInAddress = CGlobalDataFeature.singleton().registerAsAccessed(linkage);
  }
  return builtInAddress;
}
origin: com.oracle.substratevm/svm

/**
 * Create a chunk of bytes that is dimensioned and initialized to contain the bytes provided by
 * the specified supplier.
 */
public static <T extends PointerBase> CGlobalData<T> createBytes(Supplier<byte[]> contentSupplier) {
  return createBytes(contentSupplier, null);
}
origin: com.oracle.substratevm/svm

/**
 * Create a single word that is initialized to zero.
 */
public static <T extends PointerBase> CGlobalData<T> createWord() {
  return createWord((String) null);
}
com.oracle.svm.core.cCGlobalDataFactory

Javadoc

A factory for pre-allocating and pre-initializing chunks of static global data that are located outside of the heap, or for creating references to symbols. The CGlobalData can be used to access the data by address at runtime. In order for the data to be actually allocated in the native image, it must be reachable during the static analysis.

Most used methods

  • forSymbol
    Create a reference to the symbol with the specified name. Calling CGlobalData#get()on the returned o
  • createBytes
    Same as #createBytes(Supplier), and additionally creates a symbol with the provided name for the all
  • createCString
    Same as #createCString(String), and additionally creates a symbol with the provided name for the all
  • createWord
    Same as #createWord(WordBase), and additionally creates a symbol with the provided name for the allo

Popular in Java

  • Parsing JSON documents to java classes using gson
  • setScale (BigDecimal)
  • getSharedPreferences (Context)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • FileInputStream (java.io)
    An input stream that reads bytes from a file. File file = ...finally if (in != null) in.clos
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • Map (java.util)
    A Map is a data structure consisting of a set of keys and values in which each key is mapped to a si
  • Random (java.util)
    This class provides methods that return pseudo-random values.It is dangerous to seed Random with the
  • JLabel (javax.swing)
  • Project (org.apache.tools.ant)
    Central representation of an Ant project. This class defines an Ant project with all of its targets,
  • Best IntelliJ plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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