repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Velocidex/WinPmem | https://github.com/Velocidex/WinPmem | null | null | null | null | 978 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/pte_mmap.c | null | null | null | null | null | null | C | 2026-05-04T18:49:24.721125 | // This module contains helper functions to directly edit the page tables of a
// process, enabling it to map physical memory independent of the operating
// system.
//
// Warning: This code directly writes to the kernel page tables and executes
// priviledged instructions as invlpg. It will only run in ring 0.
... |
Velocidex/WinPmem | https://github.com/Velocidex/WinPmem | null | null | null | null | 978 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/testing/testapp1.c | null | null | null | null | null | null | C | 2026-05-04T18:49:24.732646 | #include <stdio.h>
#include <stdlib.h>
#include <ntifs.h>
#define IOCTL_SET_MODE CTL_CODE(0x22, 0x101, 3, 3)
#define IOCTL_REVERSE_SEARCH_QUERY CTL_CODE(0x22, 0x104, 3, 3)
#define PMEM_MODE_IOSPACE 0
#define PMEM_MODE_PHYSICAL 1
#define PMEM_MODE_PTE 2
#if defined(_WIN64)
// Install Winpmem yours... |
Velocidex/WinPmem | https://github.com/Velocidex/WinPmem | null | null | null | null | 978 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/testing/testapp2.c | null | null | null | null | null | null | C | 2026-05-04T18:49:24.734669 | #include <stdio.h>
#include <stdlib.h>
#include <ntifs.h>
#define IOCTL_SET_MODE CTL_CODE(0x22, 0x101, 3, 3)
#define IOCTL_REVERSE_SEARCH_QUERY CTL_CODE(0x22, 0x104, 3, 3)
#define PMEM_MODE_IOSPACE 0
#define PMEM_MODE_PHYSICAL 1
#define PMEM_MODE_PTE 2
#if defined(_WIN64)
// Install Winpmem yours... |
Velocidex/WinPmem | https://github.com/Velocidex/WinPmem | null | null | null | null | 978 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/userspace_interface/ctl_codes.h | null | null | null | null | null | null | C | 2026-05-04T18:49:24.764636 | #ifndef _CTL_CODES_
#define _CTL_CODES_
// The current CTL codes that should be used.
#define IOCTL_SET_MODE CTL_CODE(0x22, 0x101, 3, 3)
#define IOCTL_WRITE_ENABLE CTL_CODE(0x22, 0x102, 3, 3)
#define IOCTL_GET_INFO CTL_CODE(0x22, 0x103, 3, 3)
#define IOCTL_REVERSE_SEARCH_QUERY CTL_CODE(0x22, 0x... |
Velocidex/WinPmem | https://github.com/Velocidex/WinPmem | null | null | null | null | 978 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/userspace_interface/winpmem_shared.h | null | null | null | null | null | null | C | 2026-05-04T18:49:24.798524 | #ifndef _WINPMEM_SHARED_H_
#define _WINPMEM_SHARED_H_
// Contains all the data shared between the driver and the usermode part.
#define PMEM_DRIVER_VERSION "4.1"
#define PMEM_DEVICE_NAME_ASCII "pmem" // the name for normal userspace usage.
#define PMEM_DEVICE_NAME L"pmem" // preferred by the driver.
... |
Velocidex/WinPmem | https://github.com/Velocidex/WinPmem | null | null | null | null | 978 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/testing/testapp3.c | null | null | null | null | null | null | C | 2026-05-04T18:49:24.877284 | #include <stdio.h>
#include <stdlib.h>
#include <ntifs.h>
#define IOCTL_SET_MODE CTL_CODE(0x22, 0x101, 3, 3)
#define IOCTL_REVERSE_SEARCH_QUERY CTL_CODE(0x22, 0x104, 3, 3)
#define PMEM_MODE_IOSPACE 0
#define PMEM_MODE_PHYSICAL 1
#define PMEM_MODE_PTE 2
#if defined(_WIN64)
// Install Winpmem yours... |
Velocidex/WinPmem | https://github.com/Velocidex/WinPmem | null | null | null | null | 978 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/winpmem.h | null | null | null | null | null | null | C | 2026-05-04T18:49:25.327357 | /*
Copyright 2018 Velocidex Innovations <mike@velocidex.com>
Copyright 2014-2017 Google Inc.
Authors: Viviane Zwanger, Michael Cohen <mike@velocidex.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obt... |
Velocidex/WinPmem | https://github.com/Velocidex/WinPmem | null | null | null | null | 978 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/winpmem.c | null | null | null | null | null | null | C | 2026-05-04T18:49:25.328217 | /*
Copyright 2018 Velocidex Innovations <mike@velocidex.com>
Copyright 2014-2017 Google Inc.
Authors: Viviane Zwanger, Michael Cohen <mike@velocidex.com>
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a ... |
Velocidex/WinPmem | https://github.com/Velocidex/WinPmem | null | null | null | null | 978 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/warnings.h | null | null | null | null | null | null | C | 2026-05-04T18:49:25.494879 | #ifndef _WARNINGS_H_
#define _WARNINGS_H_
#pragma warning(disable:4201) // nonstandard extension used: nameless struct/union
#pragma warning(disable:6320) // Exception-filter expression is the constant EXCEPTION_EXECUTE_HANDLER.
#pragma warning(disable:28175) // The 'FastIoDispatch' member of _DRIVER_OBJECT sh... |
googleprojectzero/halfempty | https://github.com/googleprojectzero/halfempty | null | null | null | null | 977 | null | null | apache-2.0 | null | null | null | null | null | null | null | flags.c | null | null | null | null | null | null | C | 2026-05-04T18:49:27.866291 | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
googleprojectzero/halfempty | https://github.com/googleprojectzero/halfempty | null | null | null | null | 977 | null | null | apache-2.0 | null | null | null | null | null | null | null | flags.h | null | null | null | null | null | null | C | 2026-05-04T18:49:27.870785 | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
googleprojectzero/halfempty | https://github.com/googleprojectzero/halfempty | null | null | null | null | 977 | null | null | apache-2.0 | null | null | null | null | null | null | null | bisect.c | null | null | null | null | null | null | C | 2026-05-04T18:49:27.872087 | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
googleprojectzero/halfempty | https://github.com/googleprojectzero/halfempty | null | null | null | null | 977 | null | null | apache-2.0 | null | null | null | null | null | null | null | proc.c | null | null | null | null | null | null | C | 2026-05-04T18:49:27.874771 | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
googleprojectzero/halfempty | https://github.com/googleprojectzero/halfempty | null | null | null | null | 977 | null | null | apache-2.0 | null | null | null | null | null | null | null | splice_generic.c | null | null | null | null | null | null | C | 2026-05-04T18:49:27.875654 | #include <stdint.h>
#include <unistd.h>
#include <stdio.h>
#include <glib.h>
#ifdef SENDFILE_GENERIC
ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count);
#endif
ssize_t splice(int fd_in,
off_t *off_in,
int fd_out,
off_t *off_out,
size_t len,... |
googleprojectzero/halfempty | https://github.com/googleprojectzero/halfempty | null | null | null | null | 977 | null | null | apache-2.0 | null | null | null | null | null | null | null | proc.h | null | null | null | null | null | null | C | 2026-05-04T18:49:27.877598 | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
googleprojectzero/halfempty | https://github.com/googleprojectzero/halfempty | null | null | null | null | 977 | null | null | apache-2.0 | null | null | null | null | null | null | null | halfempty.c | null | null | null | null | null | null | C | 2026-05-04T18:49:27.907601 | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
googleprojectzero/halfempty | https://github.com/googleprojectzero/halfempty | null | null | null | null | 977 | null | null | apache-2.0 | null | null | null | null | null | null | null | sendfile_generic.c | null | null | null | null | null | null | C | 2026-05-04T18:49:27.953953 | #include <stdint.h>
#include <unistd.h>
#include <stdio.h>
#include <glib.h>
ssize_t sendfile(int out_fd, int in_fd, off_t *offset, size_t count)
{
char buf[BUFSIZ];
size_t total = 0;
if (lseek(in_fd, *offset, SEEK_SET) < 0)
return -1;
while (total < count) {
ssize_t r = 0;
... |
googleprojectzero/halfempty | https://github.com/googleprojectzero/halfempty | null | null | null | null | 977 | null | null | apache-2.0 | null | null | null | null | null | null | null | limits.c | null | null | null | null | null | null | C | 2026-05-04T18:49:27.964318 | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
googleprojectzero/halfempty | https://github.com/googleprojectzero/halfempty | null | null | null | null | 977 | null | null | apache-2.0 | null | null | null | null | null | null | null | limits.h | null | null | null | null | null | null | C | 2026-05-04T18:49:28.067140 | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
googleprojectzero/halfempty | https://github.com/googleprojectzero/halfempty | null | null | null | null | 977 | null | null | apache-2.0 | null | null | null | null | null | null | null | task.h | null | null | null | null | null | null | C | 2026-05-04T18:49:28.497119 | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
googleprojectzero/halfempty | https://github.com/googleprojectzero/halfempty | null | null | null | null | 977 | null | null | apache-2.0 | null | null | null | null | null | null | null | util.c | null | null | null | null | null | null | C | 2026-05-04T18:49:28.501236 | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
googleprojectzero/halfempty | https://github.com/googleprojectzero/halfempty | null | null | null | null | 977 | null | null | apache-2.0 | null | null | null | null | null | null | null | zero.c | null | null | null | null | null | null | C | 2026-05-04T18:49:28.501855 | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
googleprojectzero/halfempty | https://github.com/googleprojectzero/halfempty | null | null | null | null | 977 | null | null | apache-2.0 | null | null | null | null | null | null | null | tree.c | null | null | null | null | null | null | C | 2026-05-04T18:49:28.523607 | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
googleprojectzero/halfempty | https://github.com/googleprojectzero/halfempty | null | null | null | null | 977 | null | null | apache-2.0 | null | null | null | null | null | null | null | tree.h | null | null | null | null | null | null | C | 2026-05-04T18:49:28.610042 | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
googleprojectzero/halfempty | https://github.com/googleprojectzero/halfempty | null | null | null | null | 977 | null | null | apache-2.0 | null | null | null | null | null | null | null | util.h | null | null | null | null | null | null | C | 2026-05-04T18:49:28.677549 | /*
* Copyright 2018 Google LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to ... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ae/ae.c | null | null | null | null | null | null | C | 2026-05-04T18:49:31.141252 | /* A simple event-driven programming library. Originally I wrote this code
* for the Jim's event-loop (Jim is a Tcl interpreter) but later translated
* it in form of a library for easy reuse.
*
* Copyright (c) 2006-2010, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution an... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/lzf/lzfP.h | null | null | null | null | null | null | C | 2026-05-04T18:49:31.147102 | /*
* Copyright (c) 2000-2007 Marc Alexander Lehmann <schmorp@schmorp.de>
*
* Redistribution and use in source and binary forms, with or without modifica-
* tion, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* ... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ae/ae.h | null | null | null | null | null | null | C | 2026-05-04T18:49:31.148651 | /* A simple event-driven programming library. Originally I wrote this code
* for the Jim's event-loop (Jim is a Tcl interpreter) but later translated
* it in form of a library for easy reuse.
*
* Copyright (c) 2006-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution an... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/intset/intset.c | null | null | null | null | null | null | C | 2026-05-04T18:49:31.149964 | /*
* Copyright (c) 2009-2012, Pieter Noordhuis <pcnoordhuis at gmail dot com>
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ae/ae_kqueue.c | null | null | null | null | null | null | C | 2026-05-04T18:49:31.151331 | /* Kqueue(2)-based ae.c module
*
* Copyright (C) 2009 Harish Mallipeddi - harish.mallipeddi@gmail.com
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ae/ae_select.c | null | null | null | null | null | null | C | 2026-05-04T18:49:31.158076 | /* Select()-based ae.c module.
*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of sourc... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/intset/intset.h | null | null | null | null | null | null | C | 2026-05-04T18:49:31.177909 | /*
* Copyright (c) 2009-2012, Pieter Noordhuis <pcnoordhuis at gmail dot com>
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following condition... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ae/ae_evport.c | null | null | null | null | null | null | C | 2026-05-04T18:49:31.207892 | /* ae.c module for illumos event ports.
*
* Copyright (c) 2012, Joyent, Inc. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of source code must retain the above copyr... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/lzf/lzf.h | null | null | null | null | null | null | C | 2026-05-04T18:49:31.228551 | /*
* Copyright (c) 2000-2008 Marc Alexander Lehmann <schmorp@schmorp.de>
*
* Redistribution and use in source and binary forms, with or without modifica-
* tion, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* ... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/ae/ae_epoll.c | null | null | null | null | null | null | C | 2026-05-04T18:49:31.235179 | /* Linux epoll(2) based ae.c module
*
* Copyright (c) 2009-2012, Salvatore Sanfilippo <antirez at gmail dot com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* * Redistributions of ... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_check.c | null | null | null | null | null | null | C | 2026-05-04T18:49:31.778526 | #include <rmt_core.h>
#include <signal.h>
#define CHECK_UNIT_STATE_NULL 0
#define CHECK_UNIT_STATE_GET_KEY 1
#define CHECK_UNIT_STATE_GET_TYPE 2
#define CHECK_UNIT_STATE_GET_VALUE 3
#define CHECK_UNIT_STATE_GET_EXPIRE 4
typedef struct check_data {
long long err_check_keys_count;
... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_array.h | null | null | null | null | null | null | C | 2026-05-04T18:49:31.839499 |
#ifndef _RMT_ARRAY_H_
#define _RMT_ARRAY_H_
typedef int (*array_compare_t)(const void *, const void *);
typedef int (*array_each_t)(void *, void *);
struct array {
uint32_t nelem; /* # element */
void *elem; /* element */
size_t size; /* element size */
uint32_t nalloc; /* # allocated eleme... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/lzf/lzf_c.c | null | null | null | null | null | null | C | 2026-05-04T18:49:31.872402 | /*
* Copyright (c) 2000-2008 Marc Alexander Lehmann <schmorp@schmorp.de>
*
* Redistribution and use in source and binary forms, with or without modifica-
* tion, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* ... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/lzf/lzf_d.c | null | null | null | null | null | null | C | 2026-05-04T18:49:31.873911 | /*
* Copyright (c) 2000-2007 Marc Alexander Lehmann <schmorp@schmorp.de>
*
* Redistribution and use in source and binary forms, with or without modifica-
* tion, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,
* ... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_array.c | null | null | null | null | null | null | C | 2026-05-04T18:49:31.885107 |
#include <stdlib.h>
#include <rmt_core.h>
struct array *
array_create(uint32_t n, size_t size)
{
struct array *a;
ASSERT(n != 0 && size != 0);
a = rmt_alloc(sizeof(*a));
if (a == NULL) {
return NULL;
}
a->elem = rmt_alloc(n * size);
if (a->elem == NULL) {
rmt_free(a);
... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt.c | null | null | null | null | null | null | C | 2026-05-04T18:49:31.910247 |
#include <rmt_core.h>
#include <signal.h>
dictType commandTableDictType = {
dictSdsHash, /* hash function */
NULL, /* key dup */
NULL, /* val dup */
dictSdsKeyCompare, /* key compare */
dictSdsDestructor, /* key destructo... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_command.c | null | null | null | null | null | null | C | 2026-05-04T18:49:31.915275 |
#include <rmt_core.h>
#define COMMAND_NAME_MAX_LENGTH 21
struct RMTCommand rmtCommandTable[] = {
{RMT_CMD_REDIS_MIGRATE, "Migrate data from source group to target group.",
redis_migrate, -1, 0, 0, 0},
{RMT_CMD_REDIS_CHECK, "Compare data between source group and target group. Default compare 1000 key... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_conf.c | null | null | null | null | null | null | C | 2026-05-04T18:49:31.931430 |
#include <rmt_core.h>
#define CONF_TOKEN_ORGANIZATION_START "["
#define CONF_TOKEN_ORGANIZATION_END "]"
#define CONF_TOKEN_KEY_VALUE_BETWEEN ":"
#define CONF_TOKEN_ARRAY_START "-"
#define CONF_ORGANIZATION_NAME_COMMAN "common"
#define CONF_ORGANIZATION_NAME_SOURCE "source"
#define CONF_ORGANIZA... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_conf.h | null | null | null | null | null | null | C | 2026-05-04T18:49:31.943433 | #ifndef _RMT_CONF_H_
#define _RMT_CONF_H_
#define CONF_UNSET_NUM -1
#define CONF_UNSET_PTR NULL
#define CONF_UNSET_GROUP (group_type_t) -1
#define CONF_UNSET_HASH (hash_type_t) -1
#define CONF_UNSET_DIST (dist_type_t) -1
typedef struct conf_option {
char* name;
int (*set)(void *cf, stru... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_command.h | null | null | null | null | null | null | C | 2026-05-04T18:49:32.059208 | #ifndef _RMT_COMMAND_H_
#define _RMT_COMMAND_H_
#define RMT_CMD_REDIS_MIGRATE "redis_migrate"
#define RMT_CMD_KEYS_NUM "keys_num"
#define RMT_CMD_REDIS_CHECK "redis_check"
#define RMT_CMD_REDIS_TESTINSERT "redis_testinsert"
#define CMD_FLAG_NEED_CONFIRM (1<<0)
struct rmtConte... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_config.h | null | null | null | null | null | null | C | 2026-05-04T18:49:32.764881 | #ifndef __RMT_CONFIG_H
#define __RMT_CONFIG_H
#ifndef _GNU_SOURCE
#define _GNU_SOURCE
#endif
#ifdef __APPLE__
#include <AvailabilityMacros.h>
#endif
#ifdef __linux__
#include <linux/version.h>
#include <features.h>
#endif
/* Test for proc filesystem */
#ifdef __linux__
#define HAVE_PROC_STAT 1
#define HAVE_PROC_MAP... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_core.h | null | null | null | null | null | null | C | 2026-05-04T18:49:33.122482 | #ifndef _RMT_CORE_H_
#define _RMT_CORE_H_
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <rmt_config.h>
#ifdef HAVE_DEBUG_LOG
# define RMT_DEBUG_LOG 1
#endif
#ifdef HAVE_ASSERT_PANIC
# define RMT_ASSERT_PANIC 1
#endif
#ifdef HAVE_ASSERT_LOG
# define RMT_ASSERT_LOG 1
#endif
#ifdef HAVE_MEMORY_TEST
# def... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_dict.c | null | null | null | null | null | null | C | 2026-05-04T18:49:33.131515 |
#include <rmt_core.h>
/* Using dictEnableResize() / dictDisableResize() we make possible to
* enable/disable resizing of the hash table as needed. This is very important
* for Redis, as we use copy-on-write and don't want to move too much memory
* around when there is a child performing saving operations.
*
* No... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_connect.c | null | null | null | null | null | null | C | 2026-05-04T18:49:33.133125 |
#include <rmt_core.h>
#include <sys/utsname.h>
#define ERROR_RESPONSE_SYNTAX "-ERR syntax error\r\n"
#define ERROR_RESPONSE_NOTSUPPORT "-ERR command not support\r\n"
static uint32_t source_group_nodes_count(rmtContext *ctx)
{
return (uint32_t)dictSize(ctx->srgroup->nodes);
}
static uint32_t target_grou... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_hash.c | null | null | null | null | null | null | C | 2026-05-04T18:49:33.134832 |
#include <rmt_core.h>
/* ======================== Hash One at a time ========================== */
uint32_t
hash_one_at_a_time(const char *key, size_t key_length)
{
const char *ptr = key;
uint32_t value = 0;
while (key_length--) {
uint32_t val = (uint32_t) *ptr++;
value += val;
v... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_core.c | null | null | null | null | null | null | C | 2026-05-04T18:49:33.152415 |
#include <rmt_core.h>
#include <time.h>
#include <signal.h>
static void recv_data_from_target(aeEventLoop *el, int fd, void *privdata, int mask);
static void send_data_to_target(aeEventLoop *el, int fd, void *privdata, int mask);
static int readThreadCron(struct aeEventLoop *eventLoop, long long id, void *clientData... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_dict.h | null | null | null | null | null | null | C | 2026-05-04T18:49:33.288397 |
#include <stdint.h>
#ifndef __DICT_H
#define __DICT_H
#define DICT_OK 0
#define DICT_ERR 1
/* Unused arguments generate annoying warnings... */
#define DICT_NOTUSED(V) ((void) V)
typedef struct dictEntry {
void *key;
union {
void *val;
uint64_t u64;
int64_t s64;
double d;
... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_mbuf.c | null | null | null | null | null | null | C | 2026-05-04T18:49:34.517284 | #include <rmt_core.h>
#ifdef RMT_MEMORY_TEST
static volatile long long mbuf_used;
static pthread_mutex_t mbuf_mutex;
#endif
static struct mbuf *
_mbuf_get(mbuf_base *mb)
{
struct mbuf *mbuf;
uint8_t *buf;
if (mb == NULL) {
return NULL;
}
if (mb->free_mbufs) {
mbuf = mttlist_pop(m... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_connect.h | null | null | null | null | null | null | C | 2026-05-04T18:49:34.518326 |
#ifndef _RMT_CLIENT_H_
#define _RMT_CLIENT_H_
struct rmt_connect;
struct rmtContext;
struct aeEventLoop;
typedef void (*conn_recv_t)(struct aeEventLoop *, int, void *, int);
typedef struct msg* (*conn_recv_next_t)(struct rmtContext *, struct rmt_connect *, int);
typedef void (*conn_recv_done_t)(struct rmtContext *, ... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_locklist.c | null | null | null | null | null | null | C | 2026-05-04T18:49:34.519309 |
#include <rmt_core.h>
locklist *locklist_create(void)
{
locklist *llist;
llist = rmt_alloc(sizeof(*llist));
if(llist == NULL)
{
return NULL;
}
pthread_mutex_init(&llist->lmutex,NULL);
llist->l = listCreate();
if(llist->l == NULL)
{
locklist_free(llist);
... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_locklist.h | null | null | null | null | null | null | C | 2026-05-04T18:49:34.520739 | #ifndef _RMT_LOCKLIST_H_
#define _RMT_LOCKLIST_H_
typedef struct locklist{
list *l;
pthread_mutex_t lmutex;
}locklist;
locklist *locklist_create(void);
int locklist_push(void *l, void *value);
void *locklist_pop(void *l);
void locklist_free(void *l);
long long locklist_length(void *l);
#endif
|
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_log.c | null | null | null | null | null | null | C | 2026-05-04T18:49:34.521931 | #include <stdlib.h>
#include <stdarg.h>
#include <ctype.h>
#include <time.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <dirent.h>
#include <rmt_core.h>
int LOG_RORATE = 0;
ssize_t LOG_FIEL_MAX_SIZE_FOR_ROTATING = 1048576; /* 1MB */
int LOG_FILE_COUNT_TO_STAY ... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_list.h | null | null | null | null | null | null | C | 2026-05-04T18:49:34.720982 |
#ifndef _RMT_LIST_H_
#define _RMT_LIST_H_
/* Node, List, and Iterator are the only data structures used currently. */
typedef struct listNode {
struct listNode *prev;
struct listNode *next;
void *value;
} listNode;
typedef struct listIter {
listNode *next;
int direction;
} listIter;
typedef str... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_list.c | null | null | null | null | null | null | C | 2026-05-04T18:49:34.722991 |
#include <rmt_core.h>
/* Create a new list. The created list can be freed with
* AlFreeList(), but private value of every node need to be freed
* by the user before to call AlFreeList().
*
* On error, NULL is returned. Otherwise the pointer to the new list. */
list *listCreate(void)
{
list *l;
if ((l = r... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_mbuf.h | null | null | null | null | null | null | C | 2026-05-04T18:49:34.724234 |
#ifndef _RMT_MBUF_H_
#define _RMT_MBUF_H_
typedef struct mbuf_base{
size_t mbuf_chunk_size; /* mbuf chunk size - header + data (const) */
size_t mbuf_offset; /* mbuf offset in chunk (const) */
uint64_t ntotal_mbuf; /* total mbuf count */
mttlist *free_mbufs; /* free mbuf list */
}mbuf_base;
... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_message.h | null | null | null | null | null | null | C | 2026-05-04T18:49:35.339951 |
#ifndef _RMT_MESSAGE_H_
#define _RMT_MESSAGE_H_
struct msg;
struct rmtContext;
struct redis_group;
struct redis_node;
typedef void (*msg_parse_t)(struct msg *);
//typedef rstatus_t (*msg_add_auth_t)(struct context *ctx, struct conn *c_conn, struct conn *s_conn);
typedef int (*msg_add_auth_t)(void);
typedef int (*msg... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_mttlist.c | null | null | null | null | null | null | C | 2026-05-04T18:49:35.342199 |
#include <rmt_core.h>
/******** multi-thread safe list interface ********/
mttlist *mttlist_create(void)
{
mttlist *l;
l = rmt_alloc(sizeof(*l));
if(l == NULL)
{
return NULL;
}
l->l = NULL;
l->lock_push = NULL;
l->lock_pop = NULL;
l->free = NULL;
l->length = NULL;
... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_mttlist.h | null | null | null | null | null | null | C | 2026-05-04T18:49:35.343839 | #ifndef _RMT_MTTLIST_H_
#define _RMT_MTTLIST_H_
//multi-thread safe list
typedef struct mttlist{
void *l;
int (*lock_push)(void *l, void *value);
void *(*lock_pop)(void *l);
void (*free)(void *l);
long long (*length)(void *l);
}mttlist;
typedef int (*mttlist_init)(mttlist *);
/******** multi-thre... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_message.c | null | null | null | null | null | null | C | 2026-05-04T18:49:35.345161 |
#include <rmt_core.h>
#ifdef RMT_MEMORY_TEST
static volatile long long msg_used;
static pthread_mutex_t msg_mutex;
#endif
#define DEFINE_ACTION(_name) (char*)(#_name),
static char* msg_type_strings[] = {
MSG_TYPE_CODEC( DEFINE_ACTION )
NULL
};
#undef DEFINE_ACTION
static struct msg *
_msg_get(void)
{
st... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_net.c | null | null | null | null | null | null | C | 2026-05-04T18:49:35.346456 | #include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <unistd.h>
#include <fcntl.h>
#include <netdb.h>
#include <poll.h>
#include <sys/time.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/ioctl.h>
#include <netinet/in.h>
#include <netinet/tcp.h>
#include <rmt_core.h>... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_net.h | null | null | null | null | null | null | C | 2026-05-04T18:49:35.534353 | #ifndef _RMT_NET_H_
#define _RMT_NET_H_
#include <stdarg.h>
#include <sys/un.h>
#include <netinet/in.h>
#include<netdb.h>
#define RMT_INET4_ADDRSTRLEN (sizeof("255.255.255.255") - 1)
#define RMT_INET6_ADDRSTRLEN \
(sizeof("ffff:ffff:ffff:ffff:ffff:ffff:255.255.255.255") - 1)
#define RMT_INET_ADDRSTRLEN MAX(RMT_I... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_option.c | null | null | null | null | null | null | C | 2026-05-04T18:49:35.564037 | #include<unistd.h>
#include <rmt_core.h>
#define RMT_CONF_PATH "rmt.conf"
#define RMT_LOG_PATH NULL
#define RMT_SOURCE_ADDR "127.0.0.1:6379"
#define RMT_TARGET_ADDR "127.0.0.1:6380"
#define RMT_TARGET_TYPE GROUP_TYPE_SINGLE
#define RMT_INTERVAL 1000
#define RMT_PI... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_log.h | null | null | null | null | null | null | C | 2026-05-04T18:49:35.643616 |
#ifndef _RMT_LOG_H_
#define _RMT_LOG_H_
#define LOG_ROTATE_DEFAULT 0
#define LOG_FILE_MAX_SIZE_DEFAULT 1073741824
#define LOG_FILE_MAX_SIZE_MIN 1000000
#define LOG_FILE_MAX_SIZE_MAX 1122601371959296
#define LOG_FILE_COUNT_DEFAULT 10
#define LOG_FILE_COUNT_MIN -1
#define LOG_FILE... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_option.h | null | null | null | null | null | null | C | 2026-05-04T18:49:35.670164 | #ifndef _RMT_OPTION_H_
#define _RMT_OPTION_H_
#define RMT_OPTION_REDIS_ROLE_ALL "all"
#define RMT_OPTION_REDIS_ROLE_MASTER RMT_REDIS_ROLE_NAME_MASTER
#define RMT_OPTION_REDIS_ROLE_SLAVE RMT_REDIS_ROLE_NAME_SLAVE
#define RMT_OPTION_GROUP_TYPE_SINGLE "single"
#define RMT_OPTION_GROUP_TYPE_TWEM "twemproxy"
#def... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_hash.h | null | null | null | null | null | null | C | 2026-05-04T18:49:35.677117 | #ifndef _RMT_HASH_H_
#define _RMT_HASH_H_
#define HASH_CODEC(ACTION) \
ACTION( HASH_ONE_AT_A_TIME, one_at_a_time ) \
ACTION( HASH_MD5, md5 ) \
ACTION( HASH_CRC16, crc16 ) \
ACTION( HASH_CRC32, crc32 ) \
ACTION( HASH_CRC32A, ... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_testinsert.c | null | null | null | null | null | null | C | 2026-05-04T18:49:36.000513 | #include <rmt_core.h>
#include <signal.h>
#define TEST_MAX_KEY_LEN 64
#define TEST_MAX_STRING_LEN 128
#define TEST_MAX_FIELD_LEN 128
/* Object types */
#define TEST_TYPE_REDIS_STRING (1<<0)
#define TEST_TYPE_REDIS_LIST (1<<1)
#define TEST_TYPE_REDIS_SET (1<<2)
#define TEST_TYPE_REDIS_ZSET (1<<3... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_redis.h | null | null | null | null | null | null | C | 2026-05-04T18:49:36.020533 | #ifndef _RMT_REDIS_H_
#define _RMT_REDIS_H_
/* Object types */
#define REDIS_STRING 0
#define REDIS_LIST 1
#define REDIS_SET 2
#define REDIS_ZSET 3
#define REDIS_HASH 4
#define REDIS_REPLY_STATUS_OK "+OK\r\n"
#define REDIS_REPLY_STATUS_PONG "+PONG\r\n"
#define REDIS_REPLY_STATUS_NONE "... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_sds.c | null | null | null | null | null | null | C | 2026-05-04T18:49:36.025191 |
#include <rmt_core.h>
/* Create a new sds string with the content specified by the 'init' pointer
* and 'initlen'.
* If NULL is used for 'init' the string is initialized with zero bytes.
*
* The string is always null-termined (all the sds strings are, always) so
* even if you create an sds string with:
*
* mys... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_unlocklist.c | null | null | null | null | null | null | C | 2026-05-04T18:49:36.048813 |
#include <rmt_core.h>
unlocklist *unlocklist_create(void)
{
unlocklist *unllist;
unllist = rmt_alloc(sizeof(*unllist));
if(unllist == NULL)
{
return NULL;
}
unllist->l = listCreate();
if(unllist->l == NULL)
{
locklist_free(unllist);
return NULL;
}
... |
vipshop/redis-migrate-tool | https://github.com/vipshop/redis-migrate-tool | null | null | null | null | 965 | null | null | apache-2.0 | null | null | null | null | null | null | null | src/rmt_sds.h | null | null | null | null | null | null | C | 2026-05-04T18:49:36.078315 |
#ifndef _RMT_SDS_H_
#define _RMT_SDS_H_
#define SDS_MAX_PREALLOC (1024*1024)
#include <sys/types.h>
#include <stdarg.h>
typedef char *sds;
struct sdshdr {
unsigned int len;
unsigned int free;
char buf[];
};
static inline size_t sdslen(const sds s) {
struct sdshdr *sh = (void*)(s-(sizeof(struct sds... |
ubisoft/Chroma | https://github.com/ubisoft/Chroma | null | null | null | null | 951 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/headers/HotKey.h | null | null | null | null | null | null | C | 2026-05-04T18:49:38.510538 | #pragma once
#include <string>
class HotKey
{
public:
HotKey() {};
HotKey(int const& hotkeyID, int const& modKeyComID, int const& alphanumKeyComID);
void SetKeyValue(int const& comID, std::string keyVal);
std::string& GetModKeyValue() { return m_modKeyVal; }
std::string& GetAlphanumKeyValue() { return m_alphanum... |
ubisoft/Chroma | https://github.com/ubisoft/Chroma | null | null | null | null | 951 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/headers/capture.interop.h | null | null | null | null | null | null | C | 2026-05-04T18:49:38.517076 | #pragma once
#include <winrt/Windows.Graphics.Capture.h>
#include <windows.graphics.capture.interop.h>
#include <windows.graphics.capture.h>
inline auto CreateCaptureItemForWindow(HWND hwnd)
{
winrt::Windows::Graphics::Capture::GraphicsCaptureItem item = { nullptr };
HRESULT hr;
if(hwnd)
{
try
{
auto activ... |
ubisoft/Chroma | https://github.com/ubisoft/Chroma | null | null | null | null | 951 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/headers/Resource.h | null | null | null | null | null | null | C | 2026-05-04T18:49:38.526152 | //{{NO_DEPENDENCIES}}
// Microsoft Visual C++ generated include file.
// Used by Chroma.rc
//
#define IDC_POPUPMENU 101
#define IDI_AUTOMATION_ICON 102
#define IDD_ABOUT 103
#define IDB_BITMAP1 106
#define IDD_SETTINGS 107
#defin... |
ubisoft/Chroma | https://github.com/ubisoft/Chroma | null | null | null | null | 951 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/headers/Helper.h | null | null | null | null | null | null | C | 2026-05-04T18:49:38.527397 | #pragma once
#include <shlobj.h>
#include "pch.h"
#include <sstream>
#include <gdiplus.h>
//Screen capture helper
using namespace Gdiplus;
using namespace winrt;
using namespace Windows::UI;
using namespace Windows::UI::Composition;
using namespace Windows::UI::Composition::Desktop;
extern std::string g_screenshotPa... |
ubisoft/Chroma | https://github.com/ubisoft/Chroma | null | null | null | null | 951 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/headers/SimpleCapture.h | null | null | null | null | null | null | C | 2026-05-04T18:49:38.529023 | #pragma once
#define NUMVERTICES 6
#include "../shaders/Vertex.h"
#include <iostream>
#include <ctime>
#include <ratio>
#include <chrono>
#include <mutex>
class SimpleCapture
{
public:
SimpleCapture(
winrt::Windows::Graphics::DirectX::Direct3D11::IDirect3DDevice const& device,
winrt::Windows::Grap... |
ubisoft/Chroma | https://github.com/ubisoft/Chroma | null | null | null | null | 951 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/headers/App.h | null | null | null | null | null | null | C | 2026-05-04T18:49:38.540175 | #pragma once
#include "pch.h"
class SimpleCapture;
class App
{
public:
void Initialize(winrt::Windows::UI::Composition::ContainerVisual const& root);
void StartCapture(HWND const& hwnd, HWND const& clienthwnd, int const& filter);
void WindowResized(HWND const& hwnd, HWND const& clienthwnd, int const& ... |
ubisoft/Chroma | https://github.com/ubisoft/Chroma | null | null | null | null | 951 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/headers/InputHelper.h | null | null | null | null | null | null | C | 2026-05-04T18:49:38.540715 | #pragma once
#include "pch.h"
class InputHelper
{
static void UpdateTrayMenu(const HMENU& hMenu, const INT& appliedFilter, const INT& appliedMode, const bool& showa);
public:
// Name says it all
static void ShowContextMenu(const HWND& hWnd, const INT& appliedFilter, const INT& appliedMode, const bool & ... |
ubisoft/Chroma | https://github.com/ubisoft/Chroma | null | null | null | null | 951 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/headers/IniParser.h | null | null | null | null | null | null | C | 2026-05-04T18:49:38.544399 | #pragma once
#include "pch.h"
#include "HotKeyManager.h"
extern std::string g_iniFilePath;
class IniParser
{
public:
static std::string ParseSSSectionData(std::string const sectionName);
static void ParseIniData();
static void WriteToIni(std::string const sectionName, std::string folderPath);
static void Wri... |
ubisoft/Chroma | https://github.com/ubisoft/Chroma | null | null | null | null | 951 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/headers/HotKeyManager.h | null | null | null | null | null | null | C | 2026-05-04T18:49:38.544922 | #pragma once
#include "pch.h"
#include "HotKey.h"
class HotKeyManager
{
public:
HotKeyManager();
~HotKeyManager() {};
static HotKeyManager& GetInstance()
{
static HotKeyManager instance;
return instance;
}
std::vector<HotKey>& GetHotKeyList() { return m_hotkeyList; }
bool ExistKeyCombination(HotKey& hKey... |
ubisoft/Chroma | https://github.com/ubisoft/Chroma | null | null | null | null | 951 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/headers/Win32WindowEnumeration.h | null | null | null | null | null | null | C | 2026-05-04T18:49:38.580818 | #pragma once
#include <dwmapi.h>
struct Window
{
public:
Window(HWND hwnd, std::wstring const& title, std::wstring& className)
{
m_hwnd = hwnd;
m_title = title;
m_className = className;
}
HWND Hwnd() const noexcept { return m_hwnd; }
std::wstring Title() const noexcept { re... |
ubisoft/Chroma | https://github.com/ubisoft/Chroma | null | null | null | null | 951 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/headers/direct3d11.interop.h | null | null | null | null | null | null | C | 2026-05-04T18:49:39.135713 | #pragma once
#include <winrt/windows.graphics.directx.direct3d11.h>
extern "C"
{
HRESULT __stdcall CreateDirect3D11DeviceFromDXGIDevice(::IDXGIDevice* dxgiDevice,
::IInspectable** graphicsDevice);
HRESULT __stdcall CreateDirect3D11SurfaceFromDXGISurface(::IDXGISurface* dgxiSurface,
::IInspecta... |
ubisoft/Chroma | https://github.com/ubisoft/Chroma | null | null | null | null | 951 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/headers/composition.interop.h | null | null | null | null | null | null | C | 2026-05-04T18:49:39.136319 | #pragma once
#include <winrt/Windows.UI.Composition.h>
#include <windows.ui.composition.interop.h>
#include <d2d1_1.h>
inline auto CreateCompositionGraphicsDevice(
winrt::Windows::UI::Composition::Compositor const& compositor,
::IUnknown* device)
{
winrt::Windows::UI::Composition::CompositionGraphicsDevice... |
ubisoft/Chroma | https://github.com/ubisoft/Chroma | null | null | null | null | 951 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/headers/d3dHelpers.h | null | null | null | null | null | null | C | 2026-05-04T18:49:39.145502 | #pragma once
#include "composition.interop.h"
struct SurfaceContext
{
public:
SurfaceContext(std::nullptr_t) {}
SurfaceContext(
winrt::Windows::UI::Composition::CompositionDrawingSurface surface)
{
m_surface = surface;
m_d2dContext = SurfaceBeginDraw(m_surface);
}
~SurfaceCo... |
ubisoft/Chroma | https://github.com/ubisoft/Chroma | null | null | null | null | 951 | null | null | apache-2.0 | null | null | null | null | null | null | null | source/headers/pch.h | null | null | null | null | null | null | C | 2026-05-04T18:49:39.177703 | #pragma once
#include <Unknwn.h>
#include <inspectable.h>
// WinRT
#include <winrt/Windows.Foundation.h>
#include <winrt/Windows.System.h>
#include <winrt/Windows.UI.h>
#include <winrt/Windows.UI.Composition.h>
#include <winrt/Windows.UI.Composition.Desktop.h>
#include <winrt/Windows.UI.Popups.h>
#include <winrt/Wind... |
Totoro97/f2-nerf | https://github.com/Totoro97/f2-nerf | null | null | null | null | 942 | null | null | apache-2.0 | null | null | null | null | null | null | null | External/eigen-3.4.0/Eigen/src/Cholesky/LLT_LAPACKE.h | null | null | null | null | null | null | C | 2026-05-04T18:49:42.201617 | /*
Copyright (c) 2011, Intel Corporation. All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the ... |
Totoro97/f2-nerf | https://github.com/Totoro97/f2-nerf | null | null | null | null | 942 | null | null | apache-2.0 | null | null | null | null | null | null | null | External/eigen-3.4.0/Eigen/src/Core/ArithmeticSequence.h | null | null | null | null | null | null | C | 2026-05-04T18:49:42.204247 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2017 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can ob... |
Totoro97/f2-nerf | https://github.com/Totoro97/f2-nerf | null | null | null | null | 942 | null | null | apache-2.0 | null | null | null | null | null | null | null | External/eigen-3.4.0/Eigen/src/Core/Array.h | null | null | null | null | null | null | C | 2026-05-04T18:49:42.205373 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can ob... |
Totoro97/f2-nerf | https://github.com/Totoro97/f2-nerf | null | null | null | null | 942 | null | null | apache-2.0 | null | null | null | null | null | null | null | External/eigen-3.4.0/Eigen/src/CholmodSupport/CholmodSupport.h | null | null | null | null | null | null | C | 2026-05-04T18:49:42.209046 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2010 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You c... |
Totoro97/f2-nerf | https://github.com/Totoro97/f2-nerf | null | null | null | null | 942 | null | null | apache-2.0 | null | null | null | null | null | null | null | External/eigen-3.4.0/Eigen/src/Core/AssignEvaluator.h | null | null | null | null | null | null | C | 2026-05-04T18:49:42.214861 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2011 Benoit Jacob <jacob.benoit.1@gmail.com>
// Copyright (C) 2011-2014 Gael Guennebaud <gael.guennebaud@inria.fr>
// Copyright (C) 2011-2012 Jitse Niesen <jitse@maths.leeds.ac.uk>
//
// This Source Code Form is... |
Totoro97/f2-nerf | https://github.com/Totoro97/f2-nerf | null | null | null | null | 942 | null | null | apache-2.0 | null | null | null | null | null | null | null | External/eigen-3.4.0/Eigen/src/Core/Assign.h | null | null | null | null | null | null | C | 2026-05-04T18:49:42.216302 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2007 Michael Olbrich <michael.olbrich@gmx.net>
// Copyright (C) 2006-2010 Benoit Jacob <jacob.benoit.1@gmail.com>
// Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is s... |
Totoro97/f2-nerf | https://github.com/Totoro97/f2-nerf | null | null | null | null | 942 | null | null | apache-2.0 | null | null | null | null | null | null | null | External/eigen-3.4.0/Eigen/src/Cholesky/LLT.h | null | null | null | null | null | null | C | 2026-05-04T18:49:42.240162 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can ob... |
Totoro97/f2-nerf | https://github.com/Totoro97/f2-nerf | null | null | null | null | 942 | null | null | apache-2.0 | null | null | null | null | null | null | null | External/eigen-3.4.0/Eigen/src/Core/ArrayBase.h | null | null | null | null | null | null | C | 2026-05-04T18:49:42.246728 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can ob... |
Totoro97/f2-nerf | https://github.com/Totoro97/f2-nerf | null | null | null | null | 942 | null | null | apache-2.0 | null | null | null | null | null | null | null | External/eigen-3.4.0/Eigen/src/Cholesky/LDLT.h | null | null | null | null | null | null | C | 2026-05-04T18:49:42.248435 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2008-2011 Gael Guennebaud <gael.guennebaud@inria.fr>
// Copyright (C) 2009 Keir Mierle <mierle@gmail.com>
// Copyright (C) 2009 Benoit Jacob <jacob.benoit.1@gmail.com>
// Copyright (C) 2011 Timothy E. Holy <tim.... |
Totoro97/f2-nerf | https://github.com/Totoro97/f2-nerf | null | null | null | null | 942 | null | null | apache-2.0 | null | null | null | null | null | null | null | External/eigen-3.4.0/Eigen/src/Core/ArrayWrapper.h | null | null | null | null | null | null | C | 2026-05-04T18:49:42.255892 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2009-2010 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You c... |
Totoro97/f2-nerf | https://github.com/Totoro97/f2-nerf | null | null | null | null | 942 | null | null | apache-2.0 | null | null | null | null | null | null | null | External/eigen-3.4.0/Eigen/src/Core/BandMatrix.h | null | null | null | null | null | null | C | 2026-05-04T18:49:42.870630 | // This file is part of Eigen, a lightweight C++ template library
// for linear algebra.
//
// Copyright (C) 2009 Gael Guennebaud <gael.guennebaud@inria.fr>
//
// This Source Code Form is subject to the terms of the Mozilla
// Public License v. 2.0. If a copy of the MPL was not distributed
// with this file, You can ob... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.