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

Method writeShort

output/java8/1.4.17/CompilationState.java:201–204  ·  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

199 */
200
201 public static void writeShort(byte[] memory, int index, short value) {
202 memory[index+0] = (byte)((value>>(8*1))&0xFF);
203 memory[index+1] = (byte)(value&0xFF);
204 }
205}

Callers 4

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

Calls

no outgoing calls

Tested by

no test coverage detected