Skip to content

Instantly share code, notes, and snippets.

View RChehowski's full-sized avatar
📐
Focusing

Raman Chakhouski RChehowski

📐
Focusing
  • People Can Fly
  • Warsaw
View GitHub Profile
//
// Created by ASUS on 30/12/2020.
//
#include "Platform/Misc.h"
#include <optional>
#include <Allocation.h>
class CFileEntry
/**
* It is unsafe to expose Win32 api into the user's UE4 C++. This may cause various
* cryptic compilation errors and chaotic rebuilds.
* The obvious solution is to use engine API to blindly load Crypt32.dll and use it
* without referencing any of Win32 API.
*/
class FCryptoUtilsWindows
{
static const TCHAR* Crypt32LibraryName = TEXT("Crypt32");
/**
* It is unsafe to expose Win32 api into the user's UE4 C++. This may cause various
* cryptic compilation errors and chaotic rebuilds.
* The obvious solution is to use engine API to blindly load Crypt32.dll and use it
* without referencing any of Win32 API.
*/
class FCryptoUtilsWindows
{
static const TCHAR* Crypt32LibraryName = TEXT("Crypt32");
#include <cstdint>
#include "library.h"
#include <pthread.h>
#include <cstring>
#include <string>
#include <iostream>
#include <cstdio>
package com.vizor;
import com.sun.jna.Pointer;
import com.sun.jna.platform.win32.User32;
import com.sun.jna.platform.win32.WinNT.HANDLE;
import com.sun.jna.platform.win32.WinUser;
import javafx.stage.Stage;
import java.lang.invoke.MethodHandle;
import java.lang.invoke.MethodHandles;
**
* Enables locale-dependent URLs to be loaded from configuration files.
*/
public class InternationalUrl
{
private static Logger log = LogManager.getLogger(InternationalUrl.class);
/**
* Could be either:
* - {@link java.net.URL} - non-localizable URL.
int32 _convert_cli_options(const char* program_arguments, JNIEnv* env, jobjectArray* OUT_program_arguments_array)
{
NULL_CHECK(env);
NULL_CHECK(OUT_program_arguments_array);
const char* const non_null_program_arguments = EITHER(program_arguments, "");
// Error message will be empty if succeeded
char err_msg[1024];
PRIVATE_FUNCTION int32 _convert_cli_options(const char* program_arguments, JNIEnv* env, jobjectArray* OUT_program_arguments_array)
{
NULL_CHECK(env);
NULL_CHECK(OUT_program_arguments_array);
const char* const non_null_program_arguments = EITHER(program_arguments, "");
// Error message will be empty if succeeded
char err_msg[4096];
@RChehowski
RChehowski / Main.java
Created June 6, 2019 11:57
Cyclic barrier download
package com.company;
import java.util.ArrayList;
import java.util.Collection;
import java.util.Iterator;
import java.util.Queue;
import java.util.concurrent.BrokenBarrierException;
import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.concurrent.CyclicBarrier;