MCPcopy Create free account
hub / github.com/antlr/codebuff / writeShort

Method writeShort

output/java8/1.4.13/CompilationState.java:197–200  ·  view source on GitHub ↗

Write value at index into a byte array highest to lowest byte, left to right.

(byte[] memory, int index, short value)

Source from the content-addressed store, hash-verified

195 */
196
197 public static void writeShort(byte[] memory, int index, short value) {
198 memory[index+0] = (byte)((value>>(8*1))&0xFF);
199 memory[index+1] = (byte)(value&0xFF);
200 }
201}

Callers 4

emit1Method · 0.95
emit2Method · 0.95
insertMethod · 0.95
writeMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected