Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: jruby/jcodings
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 2072c2ccae62
Choose a base ref
...
head repository: jruby/jcodings
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: f5711137f754
Choose a head ref
  • 2 commits
  • 1 file changed
  • 2 contributors

Commits on Jan 27, 2018

  1. Copy the full SHA
    9cef2ba View commit details
  2. Merge pull request #20 from yui-knk/make_to_be_private

    Make some fields to be private
    lopex authored Jan 27, 2018
    Copy the full SHA
    f571113 View commit details
Showing with 13 additions and 13 deletions.
  1. +13 −13 src/org/jcodings/transcode/Transcoding.java
26 changes: 13 additions & 13 deletions src/org/jcodings/transcode/Transcoding.java
Original file line number Diff line number Diff line change
@@ -37,23 +37,23 @@ public Transcoding(Transcoder transcoder, int flags) {
}

public final Transcoder transcoder;
int flags;
private int flags;

int resumePosition;
int nextTable;
int nextInfo;
byte nextByte;
int outputIndex;
private int resumePosition;
private int nextTable;
private int nextInfo;
private byte nextByte;
private int outputIndex;

int recognizedLength, readAgainLength;

final byte[] readBuf;

int writeBuffOff, writeBuffLen;
final byte[] writeBuf;
private int writeBuffOff, writeBuffLen;
private final byte[] writeBuf;
final byte[] state;

EConvResult suspendResult;
private EConvResult suspendResult;

void close() {
transcoder.stateFinish(state);
@@ -105,11 +105,11 @@ private EConvResult transcodeRestartable(byte[] in, Ptr inStart, int inStop, byt
return transcodeRestartable0(in, inStart, out, outStart, inStop, outStop, opt);
}

int inCharStart;
byte[] inBytes;
int inP;
private int inCharStart;
private byte[] inBytes;
private int inP;

Ptr inPos;
private Ptr inPos;

private static int STR1_LENGTH(byte[] bytes, int byteaddr) {
return bytes[byteaddr] + 4;