memset byte array - Android File Input Output

Android examples for File Input Output:Byte Array

Description

memset byte array

Demo Code


//package com.java2s;

public class Main {
    public static void memset(byte[] data, byte value, int size) {
        for (int i = 0; i < size; i++) {
            data[i] = value;//ww w .  j  av  a 2 s  .  c  o m
        }
    }
}

Related Tutorials