code
string
repo_name
string
path
string
language
string
license
string
size
int64
/* zip_fopen.c -- open file in zip archive for reading Copyright (C) 1999-2007 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or without modification...
zyking1987-sjdiuwhiloql
jni/libzip/zip_fopen.c
C
gpl2
1,878
/* zip_file_error_clear.c -- clear zip file error Copyright (C) 1999-2007 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or without modification, are...
zyking1987-sjdiuwhiloql
jni/libzip/zip_file_error_clear.c
C
gpl2
1,754
/* zip_error.c -- struct zip_error helper functions Copyright (C) 1999-2007 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or without modification, a...
zyking1987-sjdiuwhiloql
jni/libzip/zip_error.c
C
gpl2
2,501
/* zip_file_get_offset.c -- get offset of file data in archive. Copyright (C) 1999-2007 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or without mod...
zyking1987-sjdiuwhiloql
jni/libzip/zip_file_get_offset.c
C
gpl2
2,407
/* zip_error_clear.c -- clear zip error Copyright (C) 1999-2007 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or without modification, are permitted...
zyking1987-sjdiuwhiloql
jni/libzip/zip_error_clear.c
C
gpl2
1,734
/* zip_add_dir.c -- add directory Copyright (C) 1999-2007 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or without modification, are permitted provi...
zyking1987-sjdiuwhiloql
jni/libzip/zip_add_dir.c
C
gpl2
2,359
/* zip_open.c -- open zip archive Copyright (C) 1999-2008 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or without modification, are permitted provi...
zyking1987-sjdiuwhiloql
jni/libzip/zip_open.c
C
gpl2
13,956
/* zip_set_archive_comment.c -- set archive comment Copyright (C) 2006-2007 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or without modification, a...
zyking1987-sjdiuwhiloql
jni/libzip/zip_set_archive_comment.c
C
gpl2
2,165
/* zip_dirent.c -- read directory entry (local or central), clean dirent Copyright (C) 1999-2008 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or with...
zyking1987-sjdiuwhiloql
jni/libzip/zip_dirent.c
C
gpl2
13,378
/* zip_source_function.c -- create zip data source from callback function Copyright (C) 1999-2007 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or wit...
zyking1987-sjdiuwhiloql
jni/libzip/zip_source_function.c
C
gpl2
2,059
/* zip_filerange_crc.c -- compute CRC32 for a range of a file Copyright (C) 2008 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or without modificati...
zyking1987-sjdiuwhiloql
jni/libzip/zip_filerange_crc.c
C
gpl2
2,218
# Copyright (C) 2009 The Android Open Source Project # # 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 ...
zyking1987-sjdiuwhiloql
jni/libzip/Android.mk
Makefile
gpl2
1,931
/* zip_source_file.c -- create data source from file Copyright (C) 1999-2008 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or without modification, ...
zyking1987-sjdiuwhiloql
jni/libzip/zip_source_file.c
C
gpl2
2,025
/* zip_error_get_sys_type.c -- return type of system error code Copyright (C) 1999-2007 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or without mod...
zyking1987-sjdiuwhiloql
jni/libzip/zip_error_get_sys_type.c
C
gpl2
1,803
/* zip_error_to_str.c -- get string representation of zip error code Copyright (C) 1999-2007 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or without ...
zyking1987-sjdiuwhiloql
jni/libzip/zip_error_to_str.c
C
gpl2
2,229
/* Config header for Android */ /* Define to 1 if you have the declaration of `tzname', and to 0 if you don't. */ /* #undef HAVE_DECL_TZNAME */ /* Define to 1 if you have the <dlfcn.h> header file. */ #define HAVE_DLFCN_H 0 /* Define to 1 if you have the `fseeko' function. */ #define HAVE_FSEEKO 0 /* Define to 1 ...
zyking1987-sjdiuwhiloql
jni/libzip/config.h
C
gpl2
2,755
/* zip_set_file_comment.c -- set comment for file in archive Copyright (C) 2006-2007 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or without modifi...
zyking1987-sjdiuwhiloql
jni/libzip/zip_set_file_comment.c
C
gpl2
2,246
/* zip_fclose.c -- close file in zip archive Copyright (C) 1999-2007 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or without modification, are perm...
zyking1987-sjdiuwhiloql
jni/libzip/zip_fclose.c
C
gpl2
2,248
/* zip_get_archive_comment.c -- get archive comment Copyright (C) 2006-2007 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or without modification, a...
zyking1987-sjdiuwhiloql
jni/libzip/zip_get_archive_comment.c
C
gpl2
2,081
/* zip_close.c -- close zip archive and update changes Copyright (C) 1999-2008 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or without modification...
zyking1987-sjdiuwhiloql
jni/libzip/zip_close.c
C
gpl2
15,881
/* zip_get_file_comment.c -- get file comment Copyright (C) 2006-2007 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or without modification, are per...
zyking1987-sjdiuwhiloql
jni/libzip/zip_get_file_comment.c
C
gpl2
2,152
/* zip_delete.c -- delete file from zip archive Copyright (C) 1999-2007 Dieter Baron and Thomas Klausner This file is part of libzip, a library to manipulate ZIP archives. The authors can be contacted at <libzip@nih.at> Redistribution and use in source and binary forms, with or without modification, are p...
zyking1987-sjdiuwhiloql
jni/libzip/zip_delete.c
C
gpl2
2,028
/** * NESDroid * Copyright 2011 Stephen Damm (Halsafar) * All rights reserved. * shinhalsafar@gmail.com * * Ideally this is the main bridge to the outside GUI. * In this case it is the Android JNI bridge we are implementing here. * This should be the only place you find Java specific JNI code. */ #include <mat...
zyking1987-sjdiuwhiloql
jni/EmulatorBridge.cpp
C++
gpl2
12,138
# # NESDROID # # SEE LICENSE FILE FOR LICENSE INFO # # Copyright 2011 Stephen Damm (Halsafar) # All rights reserved. # shinhalsafar@gmail.com # # OPTIONS ENABLE_BLUETOOTH := 0 ENABLE_DEBUG := 0 ENABLE_DEBUG_LOGGING := 1 ENABLE_LUA := 0 # STORE VARS FOR AFTER CLEANING LOCAL_PATH := $(call my-dir) ORG_PATH ...
zyking1987-sjdiuwhiloql
jni/Android.mk
Makefile
gpl2
3,678
#ifndef APPLICATION_H_ #define APPLICATION_H_ /** * NESDroid * Copyright 2011 Stephen Damm (Halsafar) * All rights reserved. * shinhalsafar@gmail.com */ #include <jni.h> #include "libpng/png.h" #include "fceu_src/types.h" #include "fceu_src/drivers/common/config.h" #include "common.h" #include "GraphicsDriver...
zyking1987-sjdiuwhiloql
jni/Application.h
C++
gpl2
3,200
/** * NESDroid * Copyright 2011 Stephen Damm (Halsafar) * All rights reserved. * shinhalsafar@gmail.com * * FceuSystem.h * * Created on: 2011-04-24 * Author: halsafar */ #ifndef FCEUSYSTEM_H_ #define FCEUSYSTEM_H_ #include "fceu_src/driver.h" #include "fceu_src/fceu.h" #include "fceu_src/input.h" #inc...
zyking1987-sjdiuwhiloql
jni/FceuSystem.h
C
gpl2
953
#!/bin/bash INDIR=$1 OUTDIR=$2 ERRORS=0 for fn in $INDIR/*.cg do name=`basename $fn .cg` echo "Converting $fn -> $OUTDIR/$name.glsl" cgc -ogles -C -profile glslf -profileopts version=120,userTexCoord=v_texCoord -o "$OUTDIR/$name.glsl" -entry main_fragment "$fn" if [ $? != 0 ]; then echo "Fail" ERRORS=`expr $E...
zyking1987-sjdiuwhiloql
shaders/convertToGLSL.sh
Shell
gpl2
438
#!/bin/bash TMPFILE=`tempfile` for fn in ./*.glsl do name=`basename $fn .cg` sed "s/sampler2D .*;/sampler2D s_texture;/g" $fn > $TMPFILE mv $TMPFILE $fn sed "s/gl_TexCoord\[0\]/v_texCoord/g" $fn > $TMPFILE mv $TMPFILE $fn done
zyking1987-sjdiuwhiloql
shaders/convertToNESDroid.sh
Shell
gpl2
242
precision mediump float; varying vec2 v_texCoord; uniform sampler2D s_texture; uniform float u_width; uniform float u_height; const vec3 dtt = vec3(65536.0,255.0,1.0); int GET_RESULT(float A, float B, float C, float D) { int x = 0; int y = 0; int r = 0; if (A == C) x+=1; else if (B == C) y+=1; if (A == D) x+=1; ...
zyking1987-sjdiuwhiloql
shaders/superEagle.glsl
GLSL
gpl2
3,534
precision mediump float; varying vec2 v_texCoord; uniform sampler2D s_texture; // number of colors the display can show const float colors = 256.0; void main() { vec3 ink = vec3(0.32, 0.50, 0.0); vec3 c11 = texture2D(s_texture, v_texCoord.xy).xyz; float lct = floor(co...
zyking1987-sjdiuwhiloql
shaders/MCGreen.glsl
GLSL
gpl2
385
precision mediump float; varying vec2 v_texCoord; uniform sampler2D s_texture; uniform float u_width; uniform float u_height; void main() { vec2 UL, UR, DL, DR; float dx = pow(u_width, -1.0) * 0.25; float dy = pow(u_height, -1.0) * 0.25; vec3 dt = vec3(1.0, 1.0...
zyking1987-sjdiuwhiloql
shaders/2xSaI.glsl
GLSL
gpl2
844
precision mediump float; varying vec2 v_texCoord; uniform sampler2D s_texture; void main() { vec2 samples[12]; samples[0] = vec2(-0.326212, -0.405805); samples[1] = vec2(-0.840144, -0.073580); samples[2] = vec2(-0.695914, 0.457137); samples[3] = vec2(-0.203345, 0.620...
zyking1987-sjdiuwhiloql
shaders/broken/blur.glsl
GLSL
gpl2
926
precision mediump float; varying vec2 v_texCoord; uniform sampler2D s_texture; uniform float u_width; uniform float u_height; #define FIX(c) max(abs(c), 1e-5); const float PI = 3.1415926535897932384626433832795; vec4 weight4(float x) { vec4 sample = FIX(PI * vec4(1.0 + x, x, 1.0 - x, 2.0 - x)); //...
zyking1987-sjdiuwhiloql
shaders/broken/Lanczos4.glsl
GLSL
gpl2
1,797
precision mediump float; varying vec2 v_texCoord; uniform sampler2D s_texture; void main() { vec4 Color = texture2D( s_texture, v_texCoord.xy ); float Sharpenfactor = 30.0; //Make this between 10 and 50; Color -= texture2D( s_texture, v_texCoord.xy+0.0001)*Sharpenf...
zyking1987-sjdiuwhiloql
shaders/sharpen.glsl
GLSL
gpl2
451
precision mediump float; varying vec2 v_texCoord; uniform sampler2D s_texture; uniform sampler2D s_palette; uniform float u_width; uniform float u_height; const float mx = 0.325; // start smoothing wt. const float k = -0.250; // wt. decrease factor const float max_w = 0.25; // max filter weigth const...
zyking1987-sjdiuwhiloql
shaders/hq2x.glsl
GLSL
gpl2
2,536
# # NESDroid # Copyright 2011 Stephen Damm (Halsafar) # All rights reserved. # shinhalsafar@gmail.com # LOCAL_PATH:= $(call my-dir) include $(CLEAR_VARS) LOCAL_MODULE_TAGS := user LOCAL_SRC_FILES := $(call all-subdir-java-files) LOCAL_PACKAGE_NAME := FceuDroid LOCAL_JNI_SHARED_LIBRARIES := libzip libgnupng libemu ...
zyking1987-sjdiuwhiloql
Android.mk
Makefile
gpl2
554
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. // // The representation of a DBImpl consists of a set of Versions. The // newest version is called "cu...
zyf873753-zhangyifan-modify-leveldb
db/version_set.h
C++
bsd
13,971
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "leveldb/db.h" #include <errno.h> #include <fcntl.h> #include <sys/stat.h> #include <sys/type...
zyf873753-zhangyifan-modify-leveldb
db/corruption_test.cc
C++
bsd
10,107
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #ifndef STORAGE_LEVELDB_DB_DB_ITER_H_ #define STORAGE_LEVELDB_DB_DB_ITER_H_ #include <stdint.h> #inclu...
zyf873753-zhangyifan-modify-leveldb
db/db_iter.h
C++
bsd
803
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/log_writer.h" #include <stdint.h> #include "leveldb/env.h" #include "util/coding.h" #incl...
zyf873753-zhangyifan-modify-leveldb
db/log_writer.cc
C++
bsd
2,844
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #ifndef STORAGE_LEVELDB_DB_VERSION_EDIT_H_ #define STORAGE_LEVELDB_DB_VERSION_EDIT_H_ #include <set> #...
zyf873753-zhangyifan-modify-leveldb
db/version_edit.h
C++
bsd
2,990
/* Copyright (c) 2011 The LevelDB Authors. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file. See the AUTHORS file for names of contributors. */ #include "leveldb/c.h" #include <stddef.h> #include <stdio.h> #include <stdlib.h> #include <string....
zyf873753-zhangyifan-modify-leveldb
db/c_test.c
C
bsd
11,634
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. // // We recover the contents of the descriptor from the other files we find. // (1) Any log files are f...
zyf873753-zhangyifan-modify-leveldb
db/repair.cc
C++
bsd
13,729
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/filename.h" #include "db/dbformat.h" #include "port/port.h" #include "util/logging.h" #in...
zyf873753-zhangyifan-modify-leveldb
db/filename_test.cc
C++
bsd
3,423
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #ifndef STORAGE_LEVELDB_DB_MEMTABLE_H_ #define STORAGE_LEVELDB_DB_MEMTABLE_H_ #include <string> #inclu...
zyf873753-zhangyifan-modify-leveldb
db/memtable.h
C++
bsd
2,737
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #ifndef STORAGE_LEVELDB_DB_BUILDER_H_ #define STORAGE_LEVELDB_DB_BUILDER_H_ #include "leveldb/status.h...
zyf873753-zhangyifan-modify-leveldb
db/builder.h
C++
bsd
1,102
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include <ctype.h> #include <stdio.h> #include "db/filename.h" #include "db/dbformat.h" #include "level...
zyf873753-zhangyifan-modify-leveldb
db/filename.cc
C++
bsd
4,093
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #ifndef STORAGE_LEVELDB_DB_FORMAT_H_ #define STORAGE_LEVELDB_DB_FORMAT_H_ #include <stdio.h> #include ...
zyf873753-zhangyifan-modify-leveldb
db/dbformat.h
C++
bsd
7,912
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. // // WriteBatch::rep_ := // sequence: fixed64 // count: fixed32 // data: record[count] // reco...
zyf873753-zhangyifan-modify-leveldb
db/write_batch.cc
C++
bsd
4,022
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/dbformat.h" #include "util/logging.h" #include "util/testharness.h" namespace leveldb { ...
zyf873753-zhangyifan-modify-leveldb
db/dbformat_test.cc
C++
bsd
3,803
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #ifndef STORAGE_LEVELDB_DB_DB_IMPL_H_ #define STORAGE_LEVELDB_DB_DB_IMPL_H_ #include <deque> #include ...
zyf873753-zhangyifan-modify-leveldb
db/db_impl.h
C++
bsd
7,290
// Copyright (c) 2013 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "leveldb/db.h" #include "db/db_impl.h" #include "leveldb/cache.h" #include "util/testharness.h...
zyf873753-zhangyifan-modify-leveldb
db/autocompact_test.cc
C++
bsd
3,373
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/memtable.h" #include "db/dbformat.h" #include "leveldb/comparator.h" #include "leveldb/env...
zyf873753-zhangyifan-modify-leveldb
db/memtable.cc
C++
bsd
4,783
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. // // Thread-safe (provides internal synchronization) #ifndef STORAGE_LEVELDB_DB_TABLE_CACHE_H_ #define...
zyf873753-zhangyifan-modify-leveldb
db/table_cache.h
C++
bsd
2,017
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/skiplist.h" #include <set> #include "leveldb/env.h" #include "util/arena.h" #include "util...
zyf873753-zhangyifan-modify-leveldb
db/skiplist_test.cc
C++
bsd
9,788
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "leveldb/db.h" #include "leveldb/filter_policy.h" #include "db/db_impl.h" #include "db/filenam...
zyf873753-zhangyifan-modify-leveldb
db/db_test.cc
C++
bsd
62,455
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include <stdio.h> #include "db/dbformat.h" #include "port/port.h" #include "util/coding.h" namespace ...
zyf873753-zhangyifan-modify-leveldb
db/dbformat.cc
C++
bsd
4,537
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/version_edit.h" #include "util/testharness.h" namespace leveldb { static void TestEncode...
zyf873753-zhangyifan-modify-leveldb
db/version_edit_test.cc
C++
bsd
1,343
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/log_reader.h" #include "db/log_writer.h" #include "leveldb/env.h" #include "util/coding.h"...
zyf873753-zhangyifan-modify-leveldb
db/log_test.cc
C++
bsd
13,907
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "leveldb/c.h" #include <stdlib.h> #include <unistd.h> #include "leveldb/cache.h" #include "le...
zyf873753-zhangyifan-modify-leveldb
db/c.cc
C++
bsd
16,007
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/version_edit.h" #include "db/version_set.h" #include "util/coding.h" namespace leveldb {...
zyf873753-zhangyifan-modify-leveldb
db/version_edit.cc
C++
bsd
6,946
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include <sys/types.h> #include <stdio.h> #include <stdlib.h> #include "db/db_impl.h" #include "db/vers...
zyf873753-zhangyifan-modify-leveldb
db/db_bench.cc
C++
bsd
29,050
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/db_iter.h" #include "db/filename.h" #include "db/db_impl.h" #include "db/dbformat.h" #inc...
zyf873753-zhangyifan-modify-leveldb
db/db_iter.cc
C++
bsd
8,539
// Copyright (c) 2012 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include <stdio.h> #include "db/dbformat.h" #include "db/filename.h" #include "db/log_reader.h" #includ...
zyf873753-zhangyifan-modify-leveldb
db/leveldb_main.cc
C++
bsd
6,577
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/version_set.h" #include <algorithm> #include <stdio.h> #include "db/filename.h" #include ...
zyf873753-zhangyifan-modify-leveldb
db/version_set.cc
C++
bsd
47,353
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #ifndef STORAGE_LEVELDB_DB_SNAPSHOT_H_ #define STORAGE_LEVELDB_DB_SNAPSHOT_H_ #include "leveldb/db.h" ...
zyf873753-zhangyifan-modify-leveldb
db/snapshot.h
C++
bsd
1,666
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/version_set.h" #include "util/logging.h" #include "util/testharness.h" #include "util/test...
zyf873753-zhangyifan-modify-leveldb
db/version_set_test.cc
C++
bsd
5,353
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #ifndef STORAGE_LEVELDB_DB_LOG_READER_H_ #define STORAGE_LEVELDB_DB_LOG_READER_H_ #include <stdint.h> ...
zyf873753-zhangyifan-modify-leveldb
db/log_reader.h
C++
bsd
3,572
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/table_cache.h" #include "db/filename.h" #include "leveldb/env.h" #include "leveldb/table....
zyf873753-zhangyifan-modify-leveldb
db/table_cache.cc
C++
bsd
3,653
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/builder.h" #include "db/filename.h" #include "db/dbformat.h" #include "db/table_cache.h" ...
zyf873753-zhangyifan-modify-leveldb
db/builder.cc
C++
bsd
2,163
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. // // Log format information shared by reader and writer. // See ../doc/log_format.txt for more detail. ...
zyf873753-zhangyifan-modify-leveldb
db/log_format.h
C++
bsd
897
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/log_reader.h" #include <stdio.h> #include "leveldb/env.h" #include "util/coding.h" #inclu...
zyf873753-zhangyifan-modify-leveldb
db/log_reader.cc
C++
bsd
8,441
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #ifndef STORAGE_LEVELDB_DB_LOG_WRITER_H_ #define STORAGE_LEVELDB_DB_LOG_WRITER_H_ #include <stdint.h> ...
zyf873753-zhangyifan-modify-leveldb
db/log_writer.h
C++
bsd
1,287
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. // // File names used by DB code #ifndef STORAGE_LEVELDB_DB_FILENAME_H_ #define STORAGE_LEVELDB_DB_FILE...
zyf873753-zhangyifan-modify-leveldb
db/filename.h
C++
bsd
3,048
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. // // Thread safety // ------------- // // Writes require external synchronization, most likely a mutex....
zyf873753-zhangyifan-modify-leveldb
db/skiplist.h
C++
bsd
11,177
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "leveldb/db.h" #include "db/memtable.h" #include "db/write_batch_internal.h" #include "leveld...
zyf873753-zhangyifan-modify-leveldb
db/write_batch_test.cc
C++
bsd
3,446
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "db/db_impl.h" #include <algorithm> #include <set> #include <string> #include <stdint.h> #inc...
zyf873753-zhangyifan-modify-leveldb
db/db_impl.cc
C++
bsd
45,794
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #ifndef STORAGE_LEVELDB_DB_WRITE_BATCH_INTERNAL_H_ #define STORAGE_LEVELDB_DB_WRITE_BATCH_INTERNAL_H_ ...
zyf873753-zhangyifan-modify-leveldb
db/write_batch_internal.h
C++
bsd
1,508
// Copyright (c) 2012 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #ifndef STORAGE_LEVELDB_PORT_THREAD_ANNOTATIONS_H // Some environments provide custom macros to aid in...
zyf873753-zhangyifan-modify-leveldb
port/thread_annotations.h
C
bsd
1,296
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "port/port_posix.h" #include <cstdlib> #include <stdio.h> #include <string.h> #include "util/...
zyf873753-zhangyifan-modify-leveldb
port/port_posix.cc
C++
bsd
1,440
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #ifndef STORAGE_LEVELDB_PORT_PORT_H_ #define STORAGE_LEVELDB_PORT_PORT_H_ #include <string.h> // Incl...
zyf873753-zhangyifan-modify-leveldb
port/port.h
C
bsd
697
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. // // See port_example.h for documentation for the following types/functions. #ifndef STORAGE_LEVELDB_P...
zyf873753-zhangyifan-modify-leveldb
port/port_posix.h
C++
bsd
4,159
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. // AtomicPointer provides storage for a lock-free pointer. // Platform-dependent implementation of Atom...
zyf873753-zhangyifan-modify-leveldb
port/atomic_pointer.h
C++
bsd
6,781
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. // MSVC didn't ship with this file until the 2010 version. #ifndef STORAGE_LEVELDB_PORT_WIN_STDINT_H_ ...
zyf873753-zhangyifan-modify-leveldb
port/win/stdint.h
C
bsd
855
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. // // This file contains the specification, but not the implementations, // of the types/operations/etc....
zyf873753-zhangyifan-modify-leveldb
port/port_example.h
C++
bsd
4,667
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "helpers/memenv/memenv.h" #include "leveldb/env.h" #include "leveldb/status.h" #include "port...
zyf873753-zhangyifan-modify-leveldb
helpers/memenv/memenv.cc
C++
bsd
9,394
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #ifndef STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_ #define STORAGE_LEVELDB_HELPERS_MEMENV_MEMENV_H_ name...
zyf873753-zhangyifan-modify-leveldb
helpers/memenv/memenv.h
C++
bsd
699
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "helpers/memenv/memenv.h" #include "db/db_impl.h" #include "leveldb/db.h" #include "leveldb/e...
zyf873753-zhangyifan-modify-leveldb
helpers/memenv/memenv_test.cc
C++
bsd
6,868
# Copyright (c) 2011 The LevelDB Authors. All rights reserved. # Use of this source code is governed by a BSD-style license that can be # found in the LICENSE file. See the AUTHORS file for names of contributors. #----------------------------------------------- # Uncomment exactly one of the lines labelled (A), (B), a...
zyf873753-zhangyifan-modify-leveldb
Makefile
Makefile
bsd
8,009
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include <string.h> #include "util/coding.h" #include "util/hash.h" // The FALLTHROUGH_INTENDED macro ...
zyf873753-zhangyifan-modify-leveldb
util/hash.cc
C++
bsd
1,293
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "util/coding.h" namespace leveldb { void EncodeFixed32(char* buf, uint32_t value) { if (po...
zyf873753-zhangyifan-modify-leveldb
util/coding.cc
C++
bsd
4,927
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "leveldb/env.h" #include "port/port.h" #include "util/testharness.h" namespace leveldb { st...
zyf873753-zhangyifan-modify-leveldb
util/env_test.cc
C++
bsd
2,524
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #ifndef STORAGE_LEVELDB_UTIL_RANDOM_H_ #define STORAGE_LEVELDB_UTIL_RANDOM_H_ #include <stdint.h> nam...
zyf873753-zhangyifan-modify-leveldb
util/random.h
C++
bsd
2,174
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "leveldb/cache.h" #include <vector> #include "util/coding.h" #include "util/testharness.h" n...
zyf873753-zhangyifan-modify-leveldb
util/cache_test.cc
C++
bsd
4,687
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include <deque> #include <set> #include <dirent.h> #include <errno.h> #include <fcntl.h> #include <pth...
zyf873753-zhangyifan-modify-leveldb
util/env_posix.cc
C++
bsd
15,371
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include <stdio.h> #include "port/port.h" #include "leveldb/status.h" namespace leveldb { const char*...
zyf873753-zhangyifan-modify-leveldb
util/status.cc
C++
bsd
1,931
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "util/crc32c.h" #include "util/testharness.h" namespace leveldb { namespace crc32c { class C...
zyf873753-zhangyifan-modify-leveldb
util/crc32c_test.cc
C++
bsd
1,748
// Copyright (c) 2012 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "leveldb/filter_policy.h" #include "util/coding.h" #include "util/logging.h" #include "util/t...
zyf873753-zhangyifan-modify-leveldb
util/bloom_test.cc
C++
bsd
3,788
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #include "leveldb/env.h" namespace leveldb { Env::~Env() { } SequentialFile::~SequentialFile() { } ...
zyf873753-zhangyifan-modify-leveldb
util/env.cc
C++
bsd
2,114
// Copyright (c) 2011 The LevelDB Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. See the AUTHORS file for names of contributors. #ifndef STORAGE_LEVELDB_UTIL_TESTUTIL_H_ #define STORAGE_LEVELDB_UTIL_TESTUTIL_H_ #include "leveldb/en...
zyf873753-zhangyifan-modify-leveldb
util/testutil.h
C++
bsd
1,758